Description Usage Arguments Value See Also Examples
Gravity estimation for a single time point
1 | gravity.fit(yt, srcDstInd)
|
yt |
length-m numeric vector of observed aggregate flows at time t |
srcDstInd |
list of source and destination flow
indices corresponding to each point-to-point flow, as
produced by |
xhat, a numeric vector of length k providing gravity estimates of the point-to-point flows of interest
Other gravity: gravity
1 2 3 | data(cmu)
srcDstInd <- getSrcDstIndices(cmu$A.full)
estimate <- gravity.fit(yt=cmu$Y.full[1,], srcDstInd=srcDstInd)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.