getGrpVar: Get Grouping Variable

View source: R/glmmTMB.R

getGrpVarR Documentation

Get Grouping Variable

Description

Extract grouping variables for random effect terms from a factor list

Usage

getGrpVar(x)

Arguments

x

"flist" object; a data frame of factors including an assign attribute matching columns to random effect terms

Value

character vector of grouping variables

Examples

data(cbpp,package="lme4")
cbpp$obs <- factor(seq(nrow(cbpp)))
rt <- lme4::glFormula(cbind(size,incidence-size)~(1|herd)+(1|obs),
  data=cbpp,family=binomial)$reTrms
getGrpVar(rt$flist)

glmmTMB documentation built on July 12, 2022, 5:06 p.m.