replace.factor.formula: Replace a factor term

Description Usage Arguments Value Examples

Description

Constructs indicator terms for a factor variable.

Usage

1

Arguments

name

term name

formula

formula

data

a data frame to be used to identify factor levels

sep

paste sep used to construct factor names

Value

Modified formula

Examples

1
2
replace.factor.formula("Species", Sepal.Length ~ Species, iris)
replace.factor.formula("Species", Sepal.Length ~ Petal.Length : Species, iris)

jrising/hierlm documentation built on May 31, 2019, 8:08 a.m.