powered by
This (simplified) method for getGroups extracts the grouping factor for a specified level of the random effects structure in a glmmTMB object.
getGroups
glmmTMB
# S3 method for glmmTMB getGroups(object, form = formula(object), level, data, sep = "/", ...)
A factor representing the grouping structure at the specified level, with a group attribute indicating the name of the grouping factor.
group
a fitted glmmTMB object.
ignored (included for compatibility).
integer indicating the level of the random effects structure to extract, defaults to 1 if missing.
additional arguments (not used).
model <- glmmTMB(count ~ mined + (1 | spp), data = Salamanders, family = nbinom1) getGroups(model)
Run the code above in your browser using DataLab