response {galamm} | R Documentation |
Extract response values
Description
Extracts response values from a model.
Usage
response(object, ...)
Arguments
object |
An object of class |
... |
Optional arguments passed on to other methods. Currently not used. |
Value
A numerical vector with fit response values for each row in the input data.
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()
,
sigma.galamm()
,
vcov.galamm()
Examples
# Linear mixed model with heteroscedastic residuals
mod <- galamm(
formula = y ~ x + (1 | id),
weights = ~ (1 | item),
data = hsced
)
# Plot response versus fitted values
plot(fitted(mod), response(mod))
[Package galamm version 0.2.3 Index]