Displaying 1 result from an estimated 1 matches for "rwanda2".
2013 Mar 26
2
GAM model with interactions between continuous variables and factors
...t but their predictions
are essentially the same.
Thanks a bunch,
> gam.1 <- gam(mortality.under.2~ maternal_age_c+ I(maternal_age_c^2)+
+ s(birth_year,by=wealth) +
+ + wealth + sex +
+ residence+ maternal_educ + birth_order,
+ ,data=rwanda2,family="binomial")
>
> gam.2 <- gam(mortality.under.2~ maternal_age_c+ I(maternal_age_c^2)+
+ s(birth_year,by=wealth) +
+ + sex +
+ residence+ maternal_educ + birth_order,
+ ,data=rwanda2,family="binomial")
>...