spflow_model_matrix: Generate design matrices for the spatial interaction model

Description Usage Arguments Value

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

Description

Creates model matrices from a sp_multi_network() network. For efficiency the relational representation of origin and destination data is preserved.

Usage

1
2
3
4
5
6
spflow_model_matrix(
  sp_multi_network,
  network_pair_id,
  formula_parts,
  estim_control
)

Arguments

sp_multi_network

A sp_multi_network() object that contains information on the origins, and the destinations and their neighborhood structure

network_pair_id

A character indicating the id of a sp_network_pair() (only relevant if the sp_multi_network() contains multiple sp_network_pair-objects: defaults to the of them)

Value

A list of design matrices for spatial interaction model


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