nwcommands tutorials

Short, worked walkthroughs — plain-language explanation first, then a real Stata command, then the actual console output that command produces. The tutorials are numbered in the order in which they build on each other, so you can read them from the top; each one also stands alone. If you’d rather look up a specific command directly, see the command reference.

Getting started

Working with networks

Describing networks

Other kinds of networks

  • Tutorial 15: Two-Mode Networks — affiliation data (people and events or companies): degree, projection to one mode, components, communities (bipartite modularity), nestedness, null models, saving and exchanging, what stops on a two-mode network, plotting; the data sets davis and ftdirectors_se
  • Tutorial 16: Valued Networks — ties with numbers: strength, weighted distances and clustering, the binary option, dichotomizing
  • Tutorial 17: Networks over Time — turnover between waves, correlation between waves, slicing a temporal edge list into snapshots

Testing and models

The statistical models are separate packages with their own sections, each with installation notes, a comparison with the R package it follows and worked tutorials: nwsaom (SAOM), nwergm (ERGM; its first tutorial, “A first ERGM”, is the first tutorial of that section), nwdynam (DyNAM) and nwrem (REM).

Reference pages

Three reference pages go with these tutorials: valued networks (when a network counts as valued and which commands then use the tie values), two-mode networks and network types (what every command does with binary, valued, two-mode and directed networks).


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.