sigma.galamm | R Documentation |
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.
## S3 method for class 'galamm'
sigma(object, ...)
object |
An object of class |
... |
Optional parameters passed on to other methods. Currently not used. |
The square root of one or more dispersion parameters.
galamm()
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()
,
response()
,
vcov.galamm()
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.