nwturnover

Tie turnover/stability between two waves of the same network

Syntax

nwturnover
net1 net2
,
gen:erate(newvarname)
[rep:lace
silent
formation]
   
gen:erate(newvarname) Required. Name of the Stata variable that stores each node’s own local stability
rep:lace Replace existing variable
silent Suppress display of results
formation Compare the formed ties with all pairs without a tie in net1: the shares that return a tie and that close a two-path

Description

nwturnover compares two networks on the SAME node set representing two waves of observation of the same relationship (e.g. a panel/longitudinal network study, net1 at time t and net2 at time t+1) and reports how much the tie structure changed between them: how many ties were stable (present at both waves), formed (absent at net1, present at net2), or dissolved (present at net1, absent at net2). Only tie presence/absence is compared (not tie weight) - nwcorrelate, which correlates tie values between two networks, answers a related but different question.

r(jaccard) is the standard “Jaccard index of network change” used in longitudinal SNA (e.g. Snijders et al.’s SIENA methodology) to gauge whether enough change occurred between waves to be worth modeling at all: stable / (stable + formed + dissolved) - 1 when the two networks are identical, 0 when they share no tie in common whatsoever. r(persistence) is a related but distinct question - of the ties that existed at net1, what fraction survived to net2: stable / (stable + dissolved), undefined (missing) if net1 has no ties at all.

generate() is required and names the per-node variable that gives each node’s OWN local Jaccard stability - computed the same way as r(jaccard), but restricted to that one node’s own ties across the two waves, rather than the whole network’s.

net1 and net2 must have the same number of nodes and the same directedness (both directed or both undirected) - comparing a directed network to an undirected one, or two networks of different size, is rejected explicitly rather than silently doing something arithmetically possible but conceptually meaningless.

For an undirected pair of networks, r(stable), r(formed), and r(dissolved) each count both (i,j) and (j,i) for the same tie, so all three are exactly double the number of actual undirected ties involved (the same convention nwmixing uses for its own mixing table). r(jaccard) and r(persistence) are unaffected, since the doubling cancels in both ratios.

formation asks which of the ties formed between the two waves continue a pattern of net1. A formed tie from i to j returns a tie if j named i in net1, and it closes a two-path if i named some k who named j in net1. The command shows both shares among the formed ties and among all pairs without a tie in net1 (the pairs from which every formed tie comes; the diagonal is not a pair, and a missing value counts as no tie). These are the descriptive precursors of the reciprocity and transitivity effects of an actor-oriented model. For an undirected pair of networks only the two-path share is shown, and the pairs are counted once. Two-mode networks are not allowed with formation. The option builds the adjacency matrices of both networks, so its memory use grows with the square of the number of nodes.

Network types

Directed: each ordered pair is compared; both networks must have the same directedness. Valued: tie values are ignored (the command prints a note on a valued network). Two-mode: yes - only the ties between the modes are counted; both networks should have the same modes. Signed: negative values are not treated specially. See nwnetworktypes.

Limits

The ties kept, formed and dissolved are counted from the lists of ties of the two networks (sorted keys) when both are held as stored ties. Measured in Stata/BE, random directed network with 10 ties per node: 20,000 nodes 0.2 seconds.

Examples

. nwset, mat((0,1,1\1,0,0\1,0,0)) name(wave1)
. nwset, mat((0,1,0\1,0,1\0,1,0)) name(wave2)
. nwturnover wave1 wave2, generate(_turnover)

. nwwebuse glasgow, nwclear
. nwturnover glasgow1 glasgow2, generate(_turnover) formation

Stored results

  • Scalars
  • r(stable) — number of ties present in both networks
  • r(formed) — number of ties present only in net2
  • r(dissolved) — number of ties present only in net1
  • r(jaccard) — stable / (stable + formed + dissolved)
  • r(persistence) — stable / (stable + dissolved); missing if net1 has no ties
  • With formation
  • r(absent) — number of pairs without a tie in net1
  • r(formed_recip) — share of formed ties that return a tie (directed networks)
  • r(absent_recip) — the same share among the pairs without a tie (directed networks)
  • r(formed_closure) — share of formed ties that close a two-path
  • r(absent_closure) — the same share among the pairs without a tie

References

Snijders, T.A.B., van de Bunt, G.G., Steglich, C.E.G. (2010). Introduction to stochastic actor-based models for network dynamics. Social Networks 32(1), 44-60. (the Jaccard index of network change, used as a standard diagnostic for whether panel-wave data is suitable for dynamic modeling)

See also


nwcommands version 3.25.0, 14 November 2026 (check your installed version)


Back to top

nwcommands is free software under the GNU General Public License, version 3, as are the model packages nwsaom, nwergm, nwdynam and nwrem. Citing and licenses · Get help · GitHub. Issues with the core go to the nwcommands repository; issues with a model package go to that package's own repository.

This site uses Just the Docs, a documentation theme for Jekyll.