powered by
Extract grouping variables for random effect terms from a factor list
getGrpVar(x)
character vector of grouping variables
"flist" object; a data frame of factors including an assign attribute matching columns to random effect terms
assign
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)
Run the code above in your browser using DataLab