powered by
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.
term
model.frame
subbars(term)
the formula with all | operators replaced by +
a mixed-model formula
formula, model.frame, model.matrix.
formula
model.matrix
Other utilities: findbars, nobars, mkRespMod, mkReTrms, nlformula.
findbars
nobars
mkRespMod
mkReTrms
nlformula
subbars(Reaction ~ Days + (Days|Subject)) ## => Reaction ~ Days + (Days + Subject)
Run the code above in your browser using DataLab