extract.lmeDesign {RLRsim} | R Documentation |
These functions extract various elements of the design of a fitted lme
- or lmer
-Object.
They are called by exactRLRT
and exactLRT
.
extract.lmeDesign(m) extract.lmerDesign(m)
m |
fitted lme - or lmer -Object |
a list with components
Vlambda |
estimated covariance of the response divided by the estimated variance of the residuals |
V |
estimated covariance of the error terms |
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 |
variance ratios of the random effects and the residuals |
y |
response variable |
extract.lmeDesign
is an adaptation of mgcv::extract.lme.cov
by Simon Wood
Fabian Scheipl
library(nlme) d <- extract.lmeDesign(lme(distance ~ age + Sex, data = Orthodont, random = ~ 1))