getGrpVar | R Documentation |
Extract grouping variables for random effect terms from a factor list
getGrpVar(x)
x |
"flist" object; a data frame of factors including an |
character vector of grouping variables
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.