define_variable_roles: Internal functions to generate model matrices

Description Usage Details Value

View source: R/spflow-model-matrix_1.R

Description

Internal functions to generate model matrices

Usage

1
define_variable_roles(formula_parts, data_sources)

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").

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)


spflow documentation built on Sept. 9, 2021, 5:06 p.m.