Rev 6562 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File nlme/man/coef.lmList.Rd% Part of the nlme package for R% Distributed under GPL 2 or later: see nlme/LICENCE.note\name{coef.lmList}\title{Extract lmList Coefficients}\usage{\method{coef}{lmList}(object, augFrame, data, which, FUN,omitGroupingFactor, \dots)}\alias{coef.lmList}\arguments{\item{object}{an object inheriting from class \code{"\link{lmList}"}, representinga list of \code{lm} objects with a common model.}\item{augFrame}{an optional logical value. If \code{TRUE}, the returneddata frame is augmented with variables defined in the data frame usedto produce \code{object}; else, if \code{FALSE}, only the coefficientsare returned. Defaults to \code{FALSE}.}\item{data}{an optional data frame with the variables to be used foraugmenting the returned data frame when \code{augFrame =TRUE}. Defaults to the data frame used to fit \code{object}.}\item{which}{an optional positive integer or character vectorspecifying which columns of the data frame used to produce \code{object}should be used in the augmentation of the returned dataframe. Defaults to all variables in the data.}\item{FUN}{an optional summary function or a list of summary functionsto be applied to group-varying variables, when collapsing the databy groups. Group-invariant variables are always summarized by theunique value that they assume within that group. If \code{FUN} is asingle function it will be applied to each non-invariant variable bygroup to produce the summary for that variable. If \code{FUN} is alist of functions, the names in the list should designate classes ofvariables in the frame such as \code{ordered}, \code{factor}, or\code{numeric}. The indicated function will be applied to anygroup-varying variables of that class. The default functions to beused are \code{mean} for numeric factors, and \code{Mode} for both\code{factor} and \code{ordered}. The \code{Mode} function, definedinternally in \code{gsummary}, returns the modal or most popularvalue of the variable. It is different from the \code{mode} functionthat returns the S-language mode of the variable.}\item{omitGroupingFactor}{an optional logical value. When \code{TRUE}the grouping factor itself will be omitted from the group-wisesummary of \code{data} but the levels of the grouping factor willcontinue to be used as the row names for the returned data frame.Defaults to \code{FALSE}.}\item{\dots}{some methods for this generic require additionalarguments. None are used in this method.}}\description{The coefficients of each \code{lm} object in the \code{object} list areextracted and organized into a data frame, with rows corresponding tothe \code{lm} components and columns corresponding to thecoefficients. Optionally, the returned data frame may be augmentedwith covariates summarized over the groups associated with the\code{lm} components.}\value{a data frame inheriting from class \code{"coef.lmList"} with the estimatedcoefficients for each \code{"lm"} component of \code{object} and,optionally, other covariates summarized over the groups correspondingto the \code{"lm"} components. The returned object also inherits fromclasses \code{"ranef.lmList"} and \code{"data.frame"}.}\references{Pinheiro, J. C. and Bates, D. M. (2000), \emph{Mixed-Effects Models in Sand S-PLUS}, Springer, New York, esp. pp. 457-458.}\author{José Pinheiro and Douglas Bates \email{bates@stat.wisc.edu}}\seealso{\code{\link{lmList}}, \code{\link{fixed.effects.lmList}},\code{\link{ranef.lmList}},\code{\link{plot.ranef.lmList}}, \code{\link{gsummary}}}\examples{fm1 <- lmList(distance ~ age|Subject, data = Orthodont)coef(fm1)coef(fm1, augFrame = TRUE)}\keyword{models}