Learn R Programming

galamm (version 0.2.3)

VarCorr: Extract variance and correlation components from model

Description

Extract variance and correlation components from model

Usage

# S3 method for galamm
VarCorr(x, sigma = 1, ...)

Value

An object of class c("VarCorr.galamm", "VarCorr.merMod").

Arguments

x

An object of class galamm returned from galamm.

sigma

Numeric value used to multiply the standard deviations. Defaults to 1.

...

Other arguments passed onto other methods. Currently not used.

See Also

print.VarCorr.galamm() for the print function.

Other details of model fit: coef.galamm(), confint.galamm(), deviance.galamm(), factor_loadings.galamm(), family.galamm(), fitted.galamm(), fixef(), formula.galamm(), llikAIC(), logLik.galamm(), nobs.galamm(), predict.galamm(), print.VarCorr.galamm(), ranef.galamm(), residuals.galamm(), response(), sigma.galamm(), vcov.galamm()

Examples

Run this code
# Linear mixed model with heteroscedastic residuals
mod <- galamm(
  formula = y ~ x + (1 | id),
  weights = ~ (1 | item),
  data = hsced
)

# Extract information on variance and covariance
VarCorr(mod)

# Convert to data frame
# (this invokes lme4's function as.data.frame.VarCorr.merMod)
as.data.frame(VarCorr(mod))

Run the code above in your browser using DataLab