create_formula_objects: Hierarchical Formula Generation

Description Usage Arguments Value Examples

Description

Hierarchical Formula Generation

Usage

1
create_formula_objects(outcome, block1, ...)

Arguments

outcome

The dependent variable of the hierarchical model

block1

A character vector, with names of variables. The first block of independent variables.

...

A character vector, with names of variables. Subsequent blocks of independent variables.

Value

A list of lm formulas

Examples

1
2
3
create_formula_objects("y", c("lag.quarterly.revenue"), c("price.index"))
create_formula_objects("y", c("lag.quarterly.revenue"), c("price.index",
"income.level"))

Example output

[[1]]
y ~ lag.quarterly.revenue
<environment: 0x1bde028>

[[2]]
y ~ lag.quarterly.revenue + price.index
<environment: 0x1bde028>

[[1]]
y ~ lag.quarterly.revenue
<environment: 0x1bf13c0>

[[2]]
y ~ lag.quarterly.revenue + price.index + income.level
<environment: 0x1bf13c0>

AutoModel documentation built on May 1, 2019, 9:14 p.m.