3 \title{Compute Variance Component Estimates}
5 Get variance component estimates from a fitted \code{lme} object.
8 varcomp(x, scale = FALSE, cum = FALSE)
11 \item{x}{A fitted \code{lme} object}
12 \item{scale}{Scale all variance so that they sum to 1}
13 \item{cum}{Send cumulative variance components.}
16 Variance computations is done as in Venables and Ripley (2002).
19 A named vector of class \code{varcomp} with estimated variance components.
22 Venables, W. N. and Ripley, B. D. (2002) \emph{Modern Applied Statistics
23 with S (Fourth Edition)}. New York: Springer-Verlag.
25 \author{Julien Dutheil \email{julien.dutheil@univ-montp2.fr}}
26 \seealso{\code{\link[nlme]{lme}}}
30 m <- lme(log10(SW) ~ 1, random = ~ 1|Order/SuperFamily/Family/Genus, data=carnivora)
31 v <- varcomp(m, TRUE, TRUE)