gravity_model: Computes the flow from A to B under the gravity model

Description Usage Arguments Value Author(s)

View source: R/movement_models.R

Description

Given the populations of A and B and the distance between them, return the estimated population flow between them modeled as

φ(A,B) = K n_A^{α}n_B^{β}/r_{AB}^{γ}

Usage

1
gravity_model(n_from, n_to, distance, params)

Arguments

n_from

population of the source

n_to

population of the destination

distance

distance between the two places

params

a named list of model parameters. For gravity model the parameters are k, pow_from, pow_to, pow_dist. destination

Value

estimated flow between source and destination

Author(s)

Sangeeta Bhatia


sangeetabhatia03/mover documentation built on Jan. 28, 2020, 4:39 a.m.