ranef.galamm: Extract random effects from galamm object.

View source: R/ranef.R

ranef.galammR Documentation

Extract random effects from galamm object.

Description

Extract random effects from galamm object.

Usage

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

Arguments

object

An object of class galamm, returned from galamm.

...

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

Value

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

Author(s)

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

References

\insertRef

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

Examples

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

# Extract random effects
ranef(count_mod)


galamm documentation built on June 22, 2024, 12:19 p.m.