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?

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?

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..??

Thank you all and any hint/help will be appreciated...


-- 
Best,
Xia

	[[alternative HTML version deleted]]

