Extend a Formula to all of it's Terms
extend.x.formula.Rd
extend a compact formula to all of it's terms as they are interpreted
Arguments
- formula
a model formula.
- extend.term
logical. If
TRUE
terms that refer to multiple variables are split into it's multiple terms.- return.interaction
logical. Whether a list containing the new formula and a vector containing logical values with information about interactions should be returned or only the new formula.
Value
If return.interaction
is TRUE
a list containing the components:
- formula
the new formula.
- is.interaction
logical, vector giving information whether the corresponding formula term is an interaction or not.