expandAllGrpVar: expand interactions/combinations of grouping variables

Description Usage Arguments Examples

Description

Modeled after lme4:::expandSlash, by Doug Bates

Usage

1

Arguments

bb

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

Examples

1
2
3
4
5
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))

Example output

Warning message:
In checkMatrixPackageVersion() : Package version inconsistency detected.
TMB was built with Matrix version 1.2.15
Current Matrix version is 1.2.17
Please re-install 'TMB' from source using install.packages('TMB', type = 'source') or ask CRAN for a binary version of 'TMB' matching CRAN's 'Matrix' package
[[1]]
us(x | f)

[[2]]
us(x | f:g)

[[1]]
1 | f

[[2]]
1 | f:g

[[3]]
1 | f:g:h

[[1]]
1 | f

[[2]]
1 | f:g

[[3]]
1 | f:g:h

[[1]]
1 | f

[[2]]
1 | g

[[3]]
1 | f:g

glmmTMB documentation built on July 20, 2021, 9:06 a.m.