Replication Data for: Bin-Conditional Conformal Prediction of Fatalities from Armed Conflict
收藏资源简介:
This package reproduces the results reported in the paper \"Bin-Conditional Conformal Prediction of Fatalities from Armed Conflict\" by David Randahl, Jonathan P. Williams, and Håvard Hegre. The package includes the code and data necessary to replicate the analysis and results presented in the paper. All results are replicated by running the `run.sh` script, which executes the main analysis and generates the figures and tables included in the paper by calling six R scripts. The run generates the figures and tables included in the paper, as well as approximately 2.3 GB of data files. One replication run takes about 6 hours to run on a 12-core Mac M2 with 32 GB of RAM. The replication is set to utilize all but one of the available cores on the machine. The scripts are set-up to prevent memory build-up issues (possible bug in the foreach package) by regularly clearing out the R subprocesses. Expected memory usage is around 1 GB of RAM per core.
本复现数据包可复现David Randahl、Jonathan P. Williams与Håvard Hegre发表的论文《武装冲突致死人数的二元条件共形预测》(Bin-Conditional Conformal Prediction of Fatalities from Armed Conflict)中的报告结果。本数据包包含复现该论文中分析流程与展示结果所需的全部代码与配套数据。所有结果均可通过运行`run.sh`脚本完成复现:该脚本将调用六个R脚本,执行核心分析流程并生成论文中收录的图表与表格。本次复现运行将生成论文所需的图表与表格,同时产出约2.3 GB的数据文件。在搭载12核M2芯片、32 GB随机存取内存(RAM)的Mac设备上,单次完整复现流程耗时约6小时。复现脚本设置为使用设备上除一个核心外的全部可用算力资源。为避免内存堆积问题(foreach包可能存在的潜在漏洞),脚本配置为定期清理R子进程。预期内存占用约为每个核心1 GB RAM。



