subbars

0th

Percentile

"Sub[stitute] Bars"

Substitute the '+' function for the '|' function in a mixed-model formula, recursively (hence the argument name term). This provides a formula suitable for the current model.frame function.

Keywords
models, utilities
Usage
subbars(term)
Arguments
term

a mixed-model formula

Value

the formula with all | operators replaced by +

See Also

formula, model.frame, model.matrix.

Other utilities: findbars, nobars, mkRespMod, mkReTrms, nlformula.

Aliases
  • subbars
Examples
# NOT RUN {
subbars(Reaction ~ Days + (Days|Subject)) ## => Reaction ~ Days + (Days + Subject)
# }
Documentation reproduced from package lme4, version 1.1-21, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.