nwcommands

Fast network analysis in Stata: import, generate, describe, analyze and plot networks, and fit statistical network models, from the Stata command line or from dialog boxes.

How fast? The model packages compared with R

Start here Tutorials Command reference

Plot of the marriage ties among 16 Florentine families
Marriage ties among Florentine families, drawn with nwplot
Interactive plot of an advice network with pictograms for men and women
An interactive plot with pictograms (nwplot, interactive)

What’s new

All news · Release notes

The packages

* Median over the models of our benchmark: one Linux computer, one thread, default settings, 26 November 2026. For goldfish, its compiled engine, the faster one. † With R’s reference linear algebra library; with Intel’s MKL, tried on one network, R was faster. The programs do not always do the same amount of work: method, all results and limits.

Install

. net install nwcommands, from(https://nwcommands.org/net/) replace
. nwinstall, everything

Needs Stata 17 or later; Stata BE is enough. New here? Start here takes you from installation to your first network, then to your own data.

Video (0:22): A short look at nwcommands, the free package for network analysis in Stata. Playing it loads the player from YouTube.

Back to top

nwcommands is free software under the GNU General Public License, version 3, as are the model packages nwsaom, nwergm, nwdynam, nwrem, nwalaam, nwlsm and nwsbm. 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.