by_source_model_matrix: Internal functions to generate model matrices

Description Usage Details Value

View source: R/spflow-model-matrix_2-transformations.R

Description

Internal functions to generate model matrices

Usage

1
by_source_model_matrix(formula_parts, data_sources)

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.

Value

A list of matrices


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