Learn R Programming

AutoModel (version 0.4.9)

create_formula_objects: Hierarchical Formula Generation

Description

Hierarchical Formula Generation

Usage

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

Run this code
create_formula_objects("y", c("lag.quarterly.revenue"), c("price.index"))
create_formula_objects("y", c("lag.quarterly.revenue"), c("price.index",
"income.level"))

Run the code above in your browser using DataLab