| residuals.galamm {galamm} | R Documentation |
Residuals of galamm objects
Description
Residuals of galamm objects
Usage
## S3 method for class 'galamm'
residuals(object, type = c("pearson", "deviance"), ...)
Arguments
object |
An object of class |
type |
Character of length one describing the type of residuals to be
returned. One of |
... |
Optional arguments passed on to other methods. Currently not used. |
Value
Numeric vector of residual values.
See Also
fitted.galamm() for model fitted values, predict.galamm() for
model predictions, and plot.galamm() for diagnostic plots. The generic
function is residuals().
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(),
sigma.galamm(),
vcov.galamm()
Examples
# Poisson GLMM
count_mod <- galamm(
formula = y ~ lbas * treat + lage + v4 + (1 | subj),
data = epilep, family = poisson
)
# Extract residuals
residuals(count_mod)