Learn R Programming

galamm (version 0.2.3)

ranef.galamm: Extract random effects from galamm object.

Description

Extract random effects from galamm object.

Usage

# S3 method for galamm
ranef(object, ...)

Value

An object of class ranef.galamm, containing the requested random effects.

Arguments

object

An object of class galamm, returned from galamm.

...

Optional parameters passed on to other methods. Currently not used.

Author

This function is derived from lme4::ranef.merMod, written by Douglas Bates, Martin Maechler, Ben Bolker, Steve Walker.

References

batesFittingLinearMixedEffects2015galamm

See Also

fixef.galamm() for fixed effects and coef.galamm() for coefficients more generally.

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(), residuals.galamm(), response(), sigma.galamm(), vcov.galamm()

Examples

Run this code
# Poisson GLMM
count_mod <- galamm(
  formula = y ~ lbas * treat + lage + v4 + (1 | subj),
  data = epilep, family = poisson
)

# Extract random effects
ranef(count_mod)

Run the code above in your browser using DataLab