powered by
Simplify a formula, assuming it is hierarchical, that is, an interaction implies all lower-order interactions and main effects involving the same variables are in the model.
tidy.formula.hierarchical(formula)
an object of class "formula".
"formula"
A character string coercible to a formula equivalent to the input.
# NOT RUN { tidy.formula.hierarchical(y ~ u + v + w + u:v + u:w + v:w + u:v:w) # }
Run the code above in your browser using DataLab