Rev 6562 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File nlme/man/getGroups.lme.Rd% Part of the nlme package for R% Distributed under GPL 2 or later: see nlme/LICENCE.note\name{getGroups.lme}\title{Extract lme Object Groups}\usage{\method{getGroups}{lme}(object, form, level, data, sep)}\alias{getGroups.lme}\arguments{\item{object}{an object inheriting from class \code{lme}, representinga fitted linear mixed-effects model.}\item{form}{this argument is included to make the method functioncompatible with the generic and is ignored in this method.}\item{level}{an optional integer vector giving the level(s) of groupingto be extracted from \code{object}. Defaults to the highest orinnermost level of grouping.}\item{data}{unused}\item{sep}{character, the separator to use between group levels whenmultiple levels are collapsed. The default is \code{'/'}.}}\description{The grouping factors corresponding to the linear mixed-effects modelrepresented by \code{object} are extracted. If more than one level isindicated in \code{level}, the corresponding grouping factors arecombined into a data frame; else the selected grouping factor isreturned as a vector.}\value{either a data frame with columns given by the grouping factorsindicated in \code{level}, or, when a single level is requested, afactor representing the selected grouping factor.}\author{José Pinheiro and Douglas Bates \email{bates@stat.wisc.edu}}\seealso{\code{\link{lme}}}\examples{fm1 <- lme(pixel ~ day + day^2, Pixel,random = list(Dog = ~day, Side = ~1))getGroups(fm1, level = 1:2)}\keyword{models}