varcomp | R Documentation |
lmer
, glmer
, lme
, glmmTMB
model
This function calculates SE and CI of variance components for lmer
, glmer
, lme
, glmmTMB
model.
varcomp(model, ci=TRUE, level=0.95)
model |
Model object returned by |
ci |
a logical value to indicates wheather or not to simulate a confidence interval for |
level |
level of confidence of CI, the default value is 0.95. |
Variance components table.
Dongwen Luo, Siva Ganesh and John Koolaard
library(predictmeans)
Oats$nitro <- factor(Oats$nitro)
fm <- lmer(yield ~ nitro*Variety+(1|Block/Variety), data=Oats)
## Not run: varcomp(fm)
fm1 <- lme(yield ~ nitro*Variety, random=~1|Block/Variety, data=Oats)
varcomp(fm1)
data(Orthodont, package="nlme")
mod <- lmer(distance ~ age + (age|Subject), data=Orthodont)
## Not run: varcomp(mod)
mod1 <- lme(distance ~ age, random=~age|Subject, data=Orthodont)
varcomp(mod1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.