Replication package: Decision time is associated with future cooperation and social rewiring decisions in network public goods games
Description
This is the replication package for the paper "Decision time is associated with future cooperation and social rewiring decisions in network public goods games".
R version 4.5.1 and the following packages (and version numbers) were used to produce the results reported in the paper.
[1] patchwork_1.3.2 ggpattern_1.2.1 openxlsx_4.2.8 GLMMadaptive_0.9-7
[5] ggsignif_0.6.4 ggpubr_0.6.1 scales_1.4.0 sjPlot_2.9.0
[9] lubridate_1.9.4 forcats_1.0.1 stringr_1.5.1 dplyr_1.1.4
[13] purrr_1.2.0 readr_2.1.5 tidyr_1.3.1 tibble_3.3.0
[17] ggplot2_4.0.0 tidyverse_2.0.0
LAPACK version 3.12.1
To replicate the results, one should make sure to have `individual_data.csv` and two folders `models_final` and `plots_final` in the same path as the replication script `analysis_inequality_final.R`, and run:
Rscript analysis_inequality_final.R
This will output the results in the console, save the plots to `plots_final`, and save the fitted models to `models_final`. The code should finish running within minutes on reasonably modern computers.
Files
individual_data.csv
Additional details
Related works
- Is supplement to
- Journal article: 10.1371/journal.pone.0347919 (DOI)
Funding
- Robert Wood Johnson Foundation
Software
- Programming language
- R