Shiny app to improve ERGM estimation and interpretation
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Geometrically Weighted Degree

travis badge CRAN_Status_Badge status


There is ambiguity and confusion in the research community about how to interpret GWDegree estimates in exponential random graph models (ERGMs). This app aims to help by providing an interactive platform that demonstrates:

  1. how the GWD statistic responds to adding edges to nodes of various degrees, contingent on the value of the shape parameter, $\theta_S$;

  2. how the degree distribution of networks of various size and density are shaped by GWD parameter and $\theta_S$ values;

  3. how GWD and GWESP -- an ERGM term used to model triadic closure -- interact to affect network centralization and clustering.


The application is available as a web-app online, but with conservative simulation limits and limited bandwidth. If you want to do anything more than play with it, install the gwdegree package for R from CRAN via install.packages("gwdegree").


To run the application from R, first attach the package with library(gwdegree), then launch it with gwdegree().

The three functionalities described above are split into separate tabs in the application. Researchers trying to decide whether to estimate or fix the shape parameter value, how to choose or interpret the shape parameter value, or how to interpret the GWD parameter value may find the second tab, "Parameter & Degree Distribution", especially useful by setting the network size and density to match the observed network and exploring the influence of the two parameters on the shape of the degree distribution.

Feedback, questions, and contributions

If you would like to contribute to this app, please submit a pull request to the GitHub repository. Feel free to report issues, provide feedback, suggest improvements, and ask questions by opening a new issue.

Related Conference Poster

I presented a poster on this at the 2016 Political Networks conference. You can view that here. It won an honorable mention for methodological contribution at the conference.