View source: R/extract.lmeDesign.R
| extract.lmeDesign | R Documentation |
These functions extract various elements of the design of a fitted
lme-, mer or lmerMod-Object. They are called by
exactRLRT and exactLRT.
extract.lmeDesign(m)
m |
a fitted |
a a list with components
Vr estimated covariance of the random effects divided by the
estimated variance of the residuals
X design of the fixed effects
Z design of the random effects
sigmasq variance of the residuals
lambda ratios of the variances of the random effects and the
variance of the residuals
y response variable
Fabian Scheipl, extract.lmerModDesign by Ben Bolker.
Many thanks to Andrzej Galecki and Tomasz Burzykowski for bug fixes.
library(nlme)
design <- extract.lmeDesign(lme(distance ~ age + Sex, data = Orthodont,
random = ~ 1))
str(design)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.