You can use the gamm function (in the mgcv package) to fit generalized
additive mixed models and specify your covariance structure.
Julian
gallon li wrote:> I used gam for data analysis a lot. Is it possible to use gam to analyze
> longitudinal data? I mean, besides the working independence assumption, can
> i specify other more reasonable covariance structure in gam?
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.