formulate: Create setting for a model matrix

Description Usage Arguments Value

View source: R/api-formulate.R

Description

Calling this function constructs the (sparse) model matrices for all models and combines the data into a single list with all necessary prefixes.

Usage

1
formulate(models = list(), data, configuration = list())

Arguments

models,

a list of formulas. One formula per

data

data.frame to pull formula terms from.

Value

list containing 1) the list-format model matrix for each formula; 2) the data used to evaluate terms for the matrix model; 3) the sparse-format model matrix in a container object; 4) additional config data used; and 4) the list of models supplied


sakrejda/hierarchy documentation built on Aug. 23, 2019, 7:15 p.m.