Learn R Programming

networkTomography (version 0.3)

gravity.fit: Gravity estimation for a single time point

Description

Gravity estimation for a single time point

Usage

gravity.fit(yt, srcDstInd)

Arguments

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 getSrcDstIndices

Value

xhat, a numeric vector of length k providing gravity estimates of the point-to-point flows of interest

See Also

Other gravity: gravity

Examples

Run this code
data(cmu)
srcDstInd <- getSrcDstIndices(cmu$A.full)
estimate <- gravity.fit(yt=cmu$Y.full[1,], srcDstInd=srcDstInd)

Run the code above in your browser using DataLab