\Header{gamm.setup}{Generalized Additive Mixed Model set up.}
\keyword{models}{gamm.setup}
\keyword{smooth}{gamm.setup}
\keyword{regression}{gamm.setup}
\begin{Description}\relax
This is an internal function of package \code{mgcv}. It is called 
by \code{gamm} to set up a generalized additive mixed model in a form suitable for fitting by calls to 
\code{glmmPQL} from the \code{MASS} library or \code{lme} from the \code{nlme} library. The main task is the representation of the smooth terms as random effects.
\end{Description}
\begin{Author}\relax
Simon N. Wood \email{simon@stats.gla.ac.uk}
\end{Author}
\begin{References}\relax
Wood, S.N. (manuscript) Tensor product smooth interactions in Generalized Additive Mixed Models.



\url{http://www.stats.gla.ac.uk/~simon/}
\end{References}
\begin{SeeAlso}\relax
\code{\Link{gamm}}
\end{SeeAlso}

