tidy: Shorten a Hierarchical Formula

Description Usage Arguments Value Examples

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

1

Arguments

formula

an object of class "formula".

Value

A character string coercible to a formula equivalent to the input.

Examples

1
tidy.formula.hierarchical(y ~ u + v + w + u:v + u:w + v:w + u:v:w)

glmbb documentation built on June 3, 2017, 1:03 a.m.

Search within the glmbb package
Search all R packages, documentation and source code