tidy.formula.hierarchical {glmbb} | R Documentation |
Shorten a Hierarchical Formula
Description
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.
Usage
tidy.formula.hierarchical(formula)
Arguments
formula |
an object of class |
Value
A character string coercible to a formula equivalent to the input.
Examples
tidy.formula.hierarchical(y ~ u + v + w + u:v + u:w + v:w + u:v:w)
[Package glmbb version 0.5-1 Index]