*! version 1.2.0 22apr206

Title

nwdisparity -- Calculates the disparity of a network's nodes

Syntax

nwdisparity
[netname]
[,
direction()
]

direction() Indicate inward or outward (default) direction for directed networks.

Description

Calculates the disparity of a network nodes and saves the result as a Stata variable _disparity.

The disparity measures the distribution of a node's strength over its various edges. For details see Barthélemy, Barrat, Pastor-Satorras and Vespignani, Characterization and modeling of weighted networks, Physica A, Volume 346, 2005.

disparity (i) = Sum_j (w_ij / s_i)^2

r(avg_disparity) = .1776241021170453
r(N) = 54

Saved results

nwdisparity saves the following in r():

Scalars

r(avg_disparity) Average of _disparity

r(N) number of observations (nodes)

Examples

. webnwuse klas12b, nwclear
. nwdisparity klas12b_wave2, direction(outward)

. webnwuse gang, nwclear
. nwdisparity gang_valued

Author

Charlie Joyez, Paris-Dauphine University
charlie.joyez@dauphine.fr

See also

nwdisparity requires the nwcommands package developed by Thomas Grund.

For do-files and ancillary files, see:

. net describe nwcommands-ado, from(http://www.nwcommands.org)

For help files, see :

. net describe nwcommands-hlp, from(http://www.nwcommands.org)