Description Usage Arguments Value See Also

View source: R/spflow-simulations.R

Simulate spatial interactions

1 2 3 4 5 6 7 | ```
spflow_sim(
exogenous_variables,
model_coefficients,
inverted_filter,
noise_sd,
verbose = FALSE
)
``` |

`exogenous_variables` |
A matrix of exogenous variables |

`model_coefficients` |
A numeric vector of coefficients |

`inverted_filter` |
A matrix that represents an inverted spatial filter matrix
(see |

`noise_sd` |
A numeric which indicates the desired standard deviation of the simulated noise |

`verbose` |
A logical whether signal to noise ration should be printed |

A vector of simulated flows

Other spflow simulation functions:
`expand_flow_neighborhood()`

,
`spatial_filter()`

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.