[R] Help with random effects and smoothing splines in GAMM

From: Liang, Hua <Hua_Liang_at_URMC.Rochester.edu>
Date: Wed 25 Oct 2006 - 15:40:14 GMT


Try to fit a longitudinal dataset using generalized mixed effects models via the R function gamm() as follows:  

library(mgcv)

gamm0.fit<- gamm(y ~ x+s(z,bs="cr"),

                random=list(

                            x=~1,

                            s(z,bs="cr")=~1

                            ),

                     family = binomial, data =raw)

the data is given by raw=(id, y,x,z). It doesn't work. If you can tell me how to fix this problem, it will be appreciated.        

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Oct 26 07:40:51 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 29 Oct 2006 - 22:30:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.