1  Software Installation

Please read the installation instructions linked below and have the software loaded before the workshop.

To allow us to quickly move through the material in Day 1, we ask that you install the necessary software, R, Rstudio, EpiModel and statnetWeb, along with the dependent R packages from the Statnet project (that happens automatically when you install EpiModel and statnetWeb). Please plan ahead to have this installed before the workshop starts using the instructions below.

If you have any questions about software installation, please contact the course instructor, Sam Jenness before the course.

1.0.1 R and Rstudio

EpiModel runs on the R statistical software platform. The current version of R is 4.4.1; please install this version on your computer. It is available on CRAN. It should be possible to replicate our findings here with older versions of R, but we cannot guarantee that. We strongly recommend updating your R version before NME.

The instructors will use Rstudio for the workshop. This is a popular front-end IDE (integrated development environment) for R, and is recommended if you are relatively new to R. It is available on the Rstudio website. We recommend having the most recent version of that installed too.

1.0.2 EpiModel

After installing R, you will need to install the EpiModel software package. With an open R console window, install EpiModel and its main related packages by typing the following.

Code
install.packages("EpiModel", dependencies = TRUE)

R may prompt you to select a mirror site. In addition to EpiModel itself, this step will also install or update the needed statnet software, including the ergm, tergm, network, and networkDynamic packages.

1.0.3 statnetWeb

Install the statnetWeb package using the same approach, and also make sure to install the package DT that may not automatically be installed as a required dependency. Check that the version of statnetWeb installed is v0.5.8 as we recently updated this package.

Code
install.packages("statnetWeb")
install.packages("DT")

1.0.4 ergm Development Package

Next, we will need an updated version of the ergm package (to fix a minor bug in the CRAN version). The updated version is 4.7-7377 and you can install that with the following command:

Code
install.packages("ergm", repos = c("https://statnet.r-universe.dev", "https://cloud.r-project.org"))

1.0.5 Testing the Installation

After installation, test that EpiModel and statnetWeb load correctly:

Code
library("EpiModel")
library("statnetWeb")

Finally, check that the installed versions of EpiModel, ergm, tergm, network, networkDynamic, and statnetWeb all match those listed below under “other attached packages”:

Code
sessionInfo("EpiModel")
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS Sonoma 14.5

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRblas.0.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/New_York
tzcode source: internal

attached base packages:
character(0)

other attached packages:
[1] EpiModel_2.4.0

loaded via a namespace (and not attached):
 [1] tidyselect_1.2.1          ergm_4.7-7377            
 [3] dplyr_1.1.4               graphics_4.4.1           
 [5] fastmap_1.2.0             lazyeval_0.2.2           
 [7] promises_1.3.0            digest_0.6.36            
 [9] mime_0.12                 lifecycle_1.0.4          
[11] rle_0.9.2                 ergm.multi_0.2.1         
[13] networkLite_1.0.5         srvyr_1.2.0              
[15] survival_3.7-0            base_4.4.1               
[17] statnetWeb_0.5.8          magrittr_2.0.3           
[19] compiler_4.4.1            rlang_1.1.4              
[21] tools_4.4.1               igraph_2.0.3             
[23] utf8_1.2.4                yaml_2.3.9               
[25] sna_2.7-2                 knitr_1.48               
[27] htmlwidgets_1.6.4         interp_1.1-6             
[29] RColorBrewer_1.1-3        methods_4.4.1            
[31] purrr_1.0.2               grid_4.4.1               
[33] fansi_1.0.6               latticeExtra_0.6-30      
[35] grDevices_4.4.1           xtable_1.8-4             
[37] colorspace_2.1-0          tergm_4.2.0              
[39] ggplot2_3.5.1             scales_1.3.0             
[41] iterators_1.0.14          MASS_7.3-61              
[43] cli_3.6.3                 survey_4.4-2             
[45] rmarkdown_2.27            utils_4.4.1              
[47] generics_0.1.3            robustbase_0.99-3        
[49] DBI_1.2.3                 ape_5.8                  
[51] cachem_1.1.0              datasets_4.4.1           
[53] splines_4.4.1             network_1.18.2           
[55] parallel_4.4.1            mitools_2.4              
[57] vctrs_0.6.5               Matrix_1.7-0             
[59] jsonlite_1.8.8            jpeg_0.1-10              
[61] foreach_1.5.2             trust_0.1-8              
[63] tidyr_1.3.1               glue_1.7.0               
[65] statnet.common_4.10.0-442 DEoptimR_1.1-3           
[67] codetools_0.2-20          gtable_0.3.5             
[69] deldir_2.0-4              later_1.3.2              
[71] networkDynamic_0.11.4     munsell_0.5.1            
[73] tibble_3.2.1              pillar_1.9.0             
[75] htmltools_0.5.8.1         deSolve_1.40             
[77] R6_2.5.1                  egor_1.24.2              
[79] stats_4.4.1               ergm.ego_1.1.0           
[81] Rdpack_2.6                doParallel_1.0.17        
[83] tidygraph_1.3.1           evaluate_0.24.0          
[85] lpSolveAPI_5.5.2.0-17.11  shiny_1.8.1.1            
[87] lattice_0.22-6            rbibutils_2.2.16         
[89] png_0.1-8                 memoise_2.0.1            
[91] renv_1.0.7                httpuv_1.6.15            
[93] Rcpp_1.0.12               coda_0.19-4.1            
[95] nlme_3.1-165              xfun_0.45                
[97] pkgconfig_2.0.3          

1.0.6 Statnet Tutorials

We encourage you to explore and practice your R skills with the tutorials for the statnet suite of software for the analysis of networks. You can find these tutorials HERE.