Description Usage Arguments Value Examples
View source: R/dest_contrained_sim.R
Calibrate an origin-constrained spatial interaction model (SIM) via a Poisson regression.
1 | dest_constrained_sim(df, orig, dest, prod, cost, intr)
|
df |
A tibble or a data frame. |
orig |
A column reference - the origin (a character or factor) |
dest |
A column reference - the destination (a character or factor) |
prod |
A data frame (or tibble) of origin production variables |
cost |
A column reference - the cost (a character or factor) |
intr |
A column reference - the interaction count (a character or factor) |
type |
What type of model to use (unconstr, orig, dest, dbl) |
A 'sim' object - like a model object but with a few extra attributes.
1 2 | require(tidyverse)
eastmid_ttw %>% poisson_reg(From,To,Dist,Count)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.