Displaying 1 result from an estimated 1 matches for "adjpatx".
2011 Jul 19
2
Incorrect degrees of freedom for splines using GAMM4?
...e a spline term for one of my exposure variables. However,
when I include a spline term, I always get reported degrees of freedom of
less than 1, even when I know that my spline is using more than 1 degree of
freedom. For example, here is the code for my model:
> global.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...