subbars: "Sub[stitute] Bars"

Description Usage Arguments Value See Also Examples

View source: R/utilities.R

Description

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.

Usage

1
  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.

Examples

1
subbars(Reaction ~ Days + (Days|Subject)) ## => Reaction ~ Days + (Days + Subject)

lme4 documentation built on May 29, 2017, 8:40 p.m.