Learn R Programming

spflow (version 0.1.0)

by_source_model_matrix: Internal functions to generate model matrices

Description

Internal functions to generate model matrices

Usage

by_source_model_matrix(formula_parts, data_sources)

Arguments

Value

A list of matrices

Details

Sources describe the data.frames holding the original information on the nodes and the node pairs. There are three possible source data.frame which are referred to as "pair", "orig", or "dest". All formulas (normal, sdm, and instrument) are combined to generate an overall model matrix which is only expanded once for each source.