> Hi R-users, > > I'm using R 2.11.1, mgcv 1.6-2 to fit a generalized additive mixed model. > I'm new to this package...and just got more and more problems... > > 1. Can I include correlation and/or random effect into gam( ) also? or > only > gamm( ) could be used?
Only in gamm() > 2. I want to estimate the smoothing function s(x) under each level of > treatment. i.e. different s(x) in each level of treatment. shall I use > s(x, > by=treatment)? When I checked the basis expansion I found they are all the > same...but shouldn't be the same right? Do you mean the estimated smooths are the same? > 3. fit=gam(.......) > basis=fit$smooth > par=basis[[1]]$xp > > Here, is "par" the vector of knots...? Where can I find the fitted coef > of smoothing function..?? coef(fit) > > Thank you all and any hint/help will be appreciated... > > > -- > Best, > Xia > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. > ______________________________________________ R-help@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.