gravity.fit: Gravity estimation for a single time point

View source: R/gravity.R

gravity.fitR Documentation

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

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

awblocker/networkTomography documentation built on May 14, 2022, 10:05 p.m.