Displaying 1 result from an estimated 1 matches for "cogtest".
2011 Jul 19
2
Incorrect degrees of freedom for splines using GAMM4?
...gamm4<-gamm4(zcog~s(adjpatx, fx=TRUE, k=5)+int234+cogagec+cogagesq
+
+ + oldfran +newus +alc2 +alc3 +alc4 +alcmiss +smk2 +smk3
+ +mdinc10c +mdinc10sq+ pwhtc +pwhtsq +edu2+ edu3 +husbgs
+husbcol+ husbmiss
+ +currpmh +pastpmh +neverpmh, random= ~(1|id)
+(1|cogtest), data=global)
Using > summary(global.gamm4$mer), I get the following output for my spline
term, indicating that I use the expected 4 degrees of freedom.
Xs(adjpatx)Fx1 0.1018943 0.1073225 0.949
Xs(adjpatx)Fx2 -0.0708114 0.1123845 -0.630
Xs(adjpatx)Fx3 0.7459511 0.6836413 1.091
Xs(ad...