rad.model: Radiation model

Description Usage Arguments Details Examples

View source: R/RadModel.R

Description

Human movement model based on radiation, for details see Simini et al. (2012) Nature. 484, 96-100

Usage

1
rad.model(m, n, s)

Arguments

m

human population size in patch m (home patch)

n

human population size in patch n

s

human population size in all pixels within the radius m -> n, excluding m and n

Details

returns the predicted flux between pixels m and n

Examples

1
2
3
4
5
6
7
popmat <- matrix(round(runif(16, 5, 20), 0), nrow = 4, ncol = 4)
m <- popmat[1, 1]
n <- popmat[3, 2]
distm <- as.matrix(dist(popmat)) # creates a distance matrix
r <- distm[3, 2]
s <- sum(popmat[distm <= r]) - m - n
rad.model(m, n, s)

obrady/SpatialDengue documentation built on Nov. 27, 2020, 12:13 p.m.