Learn R Programming

glmmTMB (version 1.1.13)

getGroups.glmmTMB: Extract Grouping Factors from an Object

Description

This (simplified) method for getGroups extracts the grouping factor for a specified level of the random effects structure in a glmmTMB object.

Usage

# S3 method for glmmTMB
getGroups(object, form = formula(object), level, data, sep = "/", ...)

Value

A factor representing the grouping structure at the specified level, with a group attribute indicating the name of the grouping factor.

Arguments

object

a fitted glmmTMB object.

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).

Examples

Run this code
model <- glmmTMB(count ~ mined + (1 | spp), data = Salamanders, family = nbinom1)
getGroups(model)

Run the code above in your browser using DataLab