| ranef.glmmTMB {glmmTMB} | R Documentation |
Generic function to extract random effects from glmmTMB models, both
for the conditional model and zero inflation.
## S3 method for class 'glmmTMB' ranef(object, ...)
object |
a |
... |
some methods for this generic function require additional arguments. |
Object of class ranef.glmmTMB with two components:
cond |
a list of data frames, containing random effects for the conditional model. |
zi |
a list of data frames, containing random effects for the zero inflation. |
When a model has no zero inflation, the default behavior of
ranef is to simplify the printed format of the random effects. To
show the full list structure, run print(ranef(model),
simplify=FALSE). In all cases, the full list structure is used to access
the data frames (see example).
data(sleepstudy, package="lme4") model <- glmmTMB(Reaction ~ Days + (1|Subject), sleepstudy) ranef(model) print(ranef(model), simplify=FALSE) ranef(model)$cond$Subject