| gravity | R Documentation | 
A function to calculate the matrix of gravity coupling based on distance and population size
gravity(tau1, tau2, rho, pop, distance)
| tau1 | recipient exponent | 
| tau2 | donor exponent | 
| rho | distance exponent | 
| pop | a vector of population sizes | 
| distance | a matrix of distances | 
A matrix of gravity coupling
sirSpatmod
require(ncf) data(usflu) usdist = gcdist(usflu$Longitude, usflu$Latitude) G = gravity(0.3, 0.6, 3, usflu$Pop, usdist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.