Published April 12, 2026 | Version v1
Dataset Open

Replication package: Decision time is associated with future cooperation and social rewiring decisions in network public goods games

Authors/Creators

  • 1. EDMO icon Yale University

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

Files (819.1 kB)

Name Size Download all
md5:e1b0aabd93ca991606e69fb90d4cc22b
97.5 kB Download
md5:85db2536b5be1cd50266900e61590d5a
720.7 kB Preview Download
md5:8cc807ec4b643d68095c51fd483fcfce
960 Bytes Preview Download

Additional details

Related works

Is supplement to
Journal article: 10.1371/journal.pone.0347919 (DOI)

Funding

Robert Wood Johnson Foundation

Software

Programming language
R