gravity.fit: Gravity estimation for a single time point

Description Usage Arguments Value See Also Examples

View source: R/gravity.R

Description

Gravity estimation for a single time point

Usage

1
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

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

networkTomography documentation built on May 2, 2019, 3:28 a.m.