In this portion of the workshop, we will work through R code for ERGMs together. The code should work in most coding environments if you have R (>=4.0.5) installed.
The tutorial is organized as a Jupyter notebook. This means you can follow along and run the code while looking at the notes and code output. To use this, you will need to install Jupyter Lab.
I have set up a cloud notebook with the required settings with Binder. Click the badge below to launch the tutorial notebook for our workshop on Binder:
It will take a bit of time to load. Once you see the screen with the
notebooks folder, click on it, then click on
ergm_tutorial.ipynb, and you’re set to go.
Some notes about using Binder:
- the notebook can timeout if left alone for some time
- you can download the notebook to run locally
- HTML of the notebook, pre-run (see the notes and code)
- HTML of the notebook, post-run (see the notes and all the results of the code)
- Github with the notebook (download the notebook to run yourself)
- R Code (download the R code to run in another environment e.g. RStudio)