Skip to content

Statnet Installation Instructions

Martina Morris edited this page Jul 6, 2022 · 3 revisions

Technically statnet is a suite of R packages that perform a wide range of data management, visualization, descriptive and statistical network analysis tasks. The number of packages in the suite is continuing to grow, providing access to new methodology as we develop it.

All statnet packages are downloaded/installed through the R interface, so you'll need to download and launch R first.

Installing individual packages from the statnet suite

We'll use the package ergm as an example here. From the R command line:

> install.packages("ergm")

This will download from CRAN and install in your RLibrary the ergm package, as well as the other packages that ergm depends on: network, statnet.common and RLE.

You will then need to:

> library(ergm)

to use the packages in R.

You can check the version with:

packageVersion("ergm")