Rev 6562 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File nlme/man/getGroupsFormula.Rd% Part of the nlme package for R% Distributed under GPL 2 or later: see nlme/LICENCE.note\name{getGroupsFormula}\title{Extract Grouping Formula}\usage{getGroupsFormula(object, asList, sep)}\alias{getGroupsFormula}\alias{getGroupsFormula.default}\alias{getGroupsFormula.gls}\alias{getGroupsFormula.lmList}\alias{getGroupsFormula.lme}\alias{getGroupsFormula.reStruct}\arguments{\item{object}{any object from which a formula can be extracted.}\item{asList}{an optional logical value. If \code{TRUE} the returnedvalue with be a list of formulas; else, if \code{FALSE} the returnedvalue will be a one-sided formula. Defaults to \code{FALSE}.}\item{sep}{character, the separator to use between group levels whenmultiple levels are collapsed. The default is \code{'/'}.}}\description{The conditioning expression associated with \code{formula(object)}(i.e. the expression after the \code{|} operator) is returned either asa named list of one-sided formulas, or a single one-sided formula,depending on the value of \code{asList}. The components of thereturned list are ordered from outermost to innermost level and arenamed after the grouping factor expression.}\value{a one-sided formula, or a list of one-sided formulas, with thegrouping structure associated with \code{formula(object)}. If noconditioning expression is present in \code{formula(object)} a\code{NULL} value is returned.}\author{José Pinheiro and Douglas Bates \email{bates@stat.wisc.edu}}\seealso{\code{\link{getGroupsFormula.gls}},\code{\link{getGroupsFormula.lmList}},\code{\link{getGroupsFormula.lme}},\code{\link{getGroupsFormula.reStruct}},\code{\link{getGroups}}}\examples{getGroupsFormula(y ~ x | g1/g2)}\keyword{models}