gravity {epimdr2}R Documentation

A function to calculate the matrix of gravity coupling based on distance and population size

Description

A function to calculate the matrix of gravity coupling based on distance and population size

Usage

gravity(tau1, tau2, rho, pop, distance)

Arguments

tau1

recipient exponent

tau2

donor exponent

rho

distance exponent

pop

a vector of population sizes

distance

a matrix of distances

Value

A matrix of gravity coupling

See Also

sirSpatmod

Examples

require(ncf)
data(usflu)
usdist = gcdist(usflu$Longitude, usflu$Latitude)
G = gravity(0.3, 0.6, 3, usflu$Pop, usdist)

[Package epimdr2 version 1.0-9 Index]