| VarCorr {galamm} | R Documentation |
Extract variance and correlation components from model
Description
Extract variance and correlation components from model
Usage
## S3 method for class 'galamm'
VarCorr(x, sigma = 1, ...)
Arguments
x |
An object of class |
sigma |
Numeric value used to multiply the standard deviations. Defaults to 1. |
... |
Other arguments passed onto other methods. Currently not used. |
Value
An object of class c("VarCorr.galamm", "VarCorr.merMod").
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(),
sigma.galamm(),
vcov.galamm()
Examples
# 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))
[Package galamm version 0.2.0 Index]