Preamble
========
The analysis requires R and Rtools to be installed.
For any questions related to R for macOS specifications, feel free to contact us. 
DataAnalysis script sections are in caps, matching the subject areas of both the manuscript and online appendix. Having run PRE-SETTINGS, each section can be run independently.

Procedure
=========
Unpack the entire data and code into a directory on your computer and run R with the working directory set to this directory.

Download and install both Latin Modern Roman Caps 10 and Latin Modern Roman 10 (font family: Latin Modern Roman) as a TTF Font from https://www.fontsquirrel.com for plotting the graphs using the Manuscript's font type. 

Version information
===================
The following versions of R and the various packages were used when last running the scripts:

R version 4.3.3 (2024-02-29 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)

Matrix products: default


locale:
[1] LC_COLLATE=German_Austria.utf8  LC_CTYPE=German_Austria.utf8    LC_MONETARY=German_Austria.utf8 LC_NUMERIC=C                    LC_TIME=German_Austria.utf8    

time zone: Europe/Budapest
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] zTree_1.0.7                multcomp_1.4-25            TH.data_1.1-2              mvtnorm_1.2-3              lme4_1.1-34               
 [6] Matrix_1.6-1.1             extrafont_0.19             remotes_2.4.2.1            knitr_1.44                 pglm_0.2-3                
[11] maxLik_1.5-2               miscTools_0.6-28           Rmisc_1.5.1                tikzDevice_0.12.5          stargazer_5.2.3           
[16] psych_2.3.9                lubridate_1.9.3            forcats_1.0.0              stringr_1.5.0              purrr_1.0.2               
[21] readr_2.1.4                tidyr_1.3.0                tibble_3.2.1               ggplot2_3.4.4              tidyverse_2.0.0           
[26] EnvStats_2.8.1             dplyr_1.1.3                BSDA_1.2.2                 lattice_0.21-8             latex2exp_0.9.6           
[31] data.table_1.14.8          xtable_1.8-4               trend_1.1.6                clusterSEs_2.6.5           plm_2.6-3                 
[36] Formula_1.2-5              AER_1.2-10                 survival_3.5-5             sandwich_3.0-2             lmtest_0.9-40             
[41] plyr_1.8.9                 texreg_1.38.6              MASS_7.3-60                xlsx_0.6.5                 PerformanceAnalytics_2.0.4
[46] xts_0.13.1                 zoo_1.8-12                 reshape_0.8.9              car_3.1-2                  carData_3.0-5             
[51] vctrs_0.6.4                ellipsis_0.3.2             pacman_0.5.1              

loaded via a namespace (and not attached):
 [1] Rdpack_2.5        mnormt_2.1.1      rlang_1.1.1       magrittr_2.0.3    e1071_1.7-13      compiler_4.3.1    callr_3.7.3       quadprog_1.5-8   
 [9] crayon_1.5.2      pkgconfig_2.0.3   labeling_0.4.3    utf8_1.2.4        tzdb_0.4.0        ps_1.7.5          nloptr_2.0.3      xfun_0.40        
[17] mlogit_1.1-1      collapse_2.0.3    xlsxjars_0.6.1    prettyunits_1.2.0 parallel_4.3.1    R6_2.5.1          stringi_1.7.12    boot_1.3-28.1    
[25] extrafontdb_1.0   Rcpp_1.0.11       filehash_2.4-5    splines_4.3.1     timechange_0.2.0  tidyselect_1.2.0  rstudioapi_0.15.0 abind_1.4-5      
[33] codetools_0.2-19  processx_3.8.2    pkgbuild_1.4.2    withr_2.5.1       rJava_1.0-6       proxy_0.4-27      pillar_1.9.0      generics_0.1.3   
[41] hms_1.1.3         munsell_0.5.0     scales_1.2.1      extraDistr_1.9.1  minqa_1.2.6       class_7.3-22      glue_1.6.2        tools_4.3.1      
[49] grid_4.3.1        Rttf2pt1_1.3.8    rbibutils_2.2.16  bdsmatrix_1.3-6   colorspace_2.1-0  nlme_3.1-162      cli_3.6.1         fansi_1.0.5      
[57] gtable_0.3.4      digest_0.6.33     farver_2.1.1      lifecycle_1.0.3   httr_1.4.7        statmod_1.5.0     dfidx_0.0-5      
