What nwlsm is, in plain words

The idea

A latent space model gives every actor a position on an invisible map and says that actors who are close on the map are more likely to be tied. The model finds the positions that best explain the ties you observe. The result is a picture of the network: clusters appear as groups of nearby actors, and the effect of a covariate, such as working in the same office, is measured against the distance. Because closeness is transitive (a friend of a friend is also near), the model explains clustering without counting triangles.

Questions it answers

  • What does the network look like as a map, and which actors form groups?
  • Do shared attributes raise the chance of a tie once distance is accounted for?
  • How many clusters does the network have?

What you need

One network observed once (directed or undirected, binary or with counts), plus optional actor and pair covariates. For the influence model, an outcome measured twice.

What you get

Estimated positions, posterior distributions of the coefficients, chain diagnostics, goodness-of-fit checks, a BIC for choosing the number of clusters, and plots.

Use it when

You want a map of a network, or a model for its ties in which clustering comes from distance.

Use something else when

  • you want to count specific patterns such as reciprocity or triangles: use nwergm.
  • you want hard groups of actors with the same role (core and periphery, for example): use nwsbm.

It follows the R package latentnet. nwlsm is part of the nwcommands family, and every package here needs the core.

Next

Install nwlsm, then the first tutorial. The home page of the package has the technical description.


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.