Description Usage Arguments Value Author(s) Examples

View source: R/utility_functions.R

This function extracts the variance components from a mixed/hierarchical
linear model fit using `lmer`

.

1 | ```
varcomp.mer(object)
``` |

`object` |
a fitted model object of class |

A named vector is returned. `sigma2`

denotes the residual
variance. The other variance components are names `D**`

where the
trailing digits specify the of that variance component in the covariance
matrix of the random effects.

Adam Loy loyad01@gmail.com

1 2 3 | ```
data(sleepstudy, package = "lme4")
fm1 <- lme4::lmer(Reaction ~ Days + (Days|Subject), sleepstudy)
varcomp.mer(fm1)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.