Displaying 1 result from an estimated 1 matches for "fafr".
Did you mean:
afr
2009 May 05
1
A question about using “by” in GAM model fitting of interaction between smooth terms and factor
...the same results. That is, the
codes ?y~z+s(x,by=z)? and ?y~z+s(x,by=z)-1? gave the same results. The
following is my result:
###########################################################################
?anova(model1,model2,test="Chisq")
Analysis of Deviance Table
Model 1: FLBS ~ SES + s(FAFR, by = SES) + s(byear, by = SES) + s(FAFR,
byear, by = SES)
Model 2: FLBS ~ SES + s(FAFR, by = SES) + s(byear, by = SES) + s(FAFR,
byear, by = SES) - 1
Resid. Df Resid. Dev Df Deviance P(>|Chi|)
1 1.2076e+03 1458.4
2 1.2076e+03 1458.4 1.9...