| expandDoubleVerts {lme4} | R Documentation |
'||' notation into separate '|' termsFrom the right hand side of a formula for a mixed-effects model, expand terms with the double vertical bar operator into separate, independent random effect terms.
expandDoubleVerts(term)
term |
a mixed-model formula |
the modified term
formula, model.frame,
model.matrix.
Other utilities: mkRespMod,
mkReTrms, nlformula,
nobars, subbars
f <- y ~ x + (x || g) # the right-hand side of f is, f[[3]] # the expanded right-hand side, expandDoubleVerts(f[[3]])