sigma.galamm {galamm} | R Documentation |
Extract square root of dispersion parameter from galamm object
Description
Extracts the square root of the dispersion parameter(s) from an object of
class galamm
, returned from galamm
. In the case of
conditionally Gaussian responses, this is the residual standard deviation.
When there are multiple dispersion parameters, e.g., with mixed response
type models, the square root of all of them are returned in a numeric vector.
Usage
## S3 method for class 'galamm'
sigma(object, ...)
Arguments
object |
An object of class |
... |
Optional parameters passed on to other methods. Currently not used. |
Value
The square root of one or more dispersion parameters.
See Also
Other details of model fit:
VarCorr()
,
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()
,
vcov.galamm()
Examples
# Linear mixed model with heteroscedastic residuals
mod <- galamm(
formula = y ~ x + (1 | id),
weights = ~ (1 | item),
data = hsced
)
# Extract residual standard deviation.
sigma(mod)
# The residual standard deviation applies to the base case. The variance
# function shown in the model output shows the estimated multiplier for
# various grouping levels:
summary(mod)