Learn R Programming

glmmTMB (version 1.0.2.1)

expandAllGrpVar: expand interactions/combinations of grouping variables

Description

Modeled after lme4:::expandSlash, by Doug Bates

Usage

expandAllGrpVar(bb)

Arguments

bb

a list of naked grouping variables, i.e. 1 | f

Examples

Run this code
# NOT RUN {
ff <- glmmTMB:::fbx(y~1+(x|f/g))
glmmTMB:::expandAllGrpVar(ff)
glmmTMB:::expandAllGrpVar(quote(1|(f/g)/h))
glmmTMB:::expandAllGrpVar(quote(1|f/g/h))
glmmTMB:::expandAllGrpVar(quote(1|f*g))
# }

Run the code above in your browser using DataLab