Rev 4446 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{VarCorr}\docType{genericFunction}\alias{VarCorr}\alias{VarCorr,mer-method}\alias{VarCorr,lmer2-method}\alias{VarCorr,nlmer-method}\title{Extract variance and correlation components}\usage{\S4method{VarCorr}{mer}(x, REML = x@status["REML"], \dots)\S4method{VarCorr}{lmer2}(x, REML = NULL, \dots)\S4method{VarCorr}{nlmer}(x, \dots)}\arguments{\item{x}{a fitted model object, usually an object inheriting fromclass \code{\linkS4class{lmer}} (or, temporarily, class\code{\linkS4class{lmer2}}).}\item{REML}{logical indicating if REML should be used.}\item{\dots}{Additional, optional arguments for some methods. Atpresent none are used.}}\description{Extract the estimated variances, standarddeviations, and correlations of the random-effects terms in alinear mixed-effects model, of class \code{lme}, or a generalizedlinear mixed-effects model. When appropriate,the within-group error variance and standard deviation are alsocalculated.}\value{an object of class \code{VarCorr}.}\seealso{the \code{\link{lmer}} function and \code{\linkS4class{lmer}} class;the result class \code{\linkS4class{VarCorr}}.}\examples{(fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject),data = sleepstudy))(VC <- VarCorr(fm2))}\keyword{models}