Learn R Programming

spflow (version 0.1.0)

define_variable_roles: Internal functions to generate model matrices

Description

Internal functions to generate model matrices

Usage

define_variable_roles(formula_parts, data_sources)

Arguments

Value

A list of lists, with information on the way variables are used in the model. (e.g. origin vs destination and the number of lags)

Details

The function generates a list for each role c("Y_","G_","O_","D_","I_") which indicates whether a variable in the design matrix is used as c("norm", "sdm", "inst").