| getGroups.glmmTMB | R Documentation |
This (simplified) method for getGroups extracts the grouping factor
for a specified level of the random effects structure in a glmmTMB object.
## S3 method for class 'glmmTMB'
getGroups(object, form = formula(object), level, data, sep = "/", ...)
object |
a fitted |
form |
ignored (included for compatibility). |
level |
integer indicating the level of the random effects structure to extract, defaults to 1 if missing. |
data |
ignored (included for compatibility). |
sep |
ignored (included for compatibility). |
... |
additional arguments (not used). |
A factor representing the grouping structure at the specified level,
with a group attribute indicating the name of the grouping factor.
model <- glmmTMB(count ~ mined + (1 | spp), data = Salamanders, family = nbinom1)
getGroups(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.