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.

subbars(term)

Arguments

term

a mixed-model formula

Value

the formula with all | operators replaced by +

Examples

subbars(Reaction ~ Days + (Days|Subject)) ## => Reaction ~ Days + (Days + Subject)
#> Reaction ~ Days + (Days + Subject)
#> <environment: 0x55a2f55f9160>