Description Usage Details Value

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

Internal functions to generate model matrices

1 | ```
by_source_model_matrix(formula_parts, data_sources)
``` |

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.

A list of matrices

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.