<aside> 💡 This page provides instructions on executing the replication package to produce the final results in the paper.

</aside>

Download

Download **the replication package (20.1 GB) containing all unrestricted datasets employed in the study.

Notice that the Compustat dataset, which has restricted access, is not part of the replication package. Retrieve Compustat, rename it as “compustat_annual2.csv”, and transfer it to the "input_data" directory.

Environment setup

If you have installed both R and RStudio, begin by executing the “run_project.Rproj” file. The R project employs renv to guarantee the project's portability and reproducibility. Renv helps ensure that the environment (libraries and their versions) used in the project is consistent across different systems. If you encounter any issues while running the renv environment, try the following command:

renv::repair()

If you prefer to execute the project using the latest versions of the library rather than the ones employed by the author, deactivate the renv using “renv::deactivate()”.

Direct replication

Running the "07_tables_3_4_RUNALL.R" script alone will produce Tables 1, 3, and 4 along with Figures 1 through 5 under the folder “output”. To produce Table 5, execute the "08_table5_gmm.do".

Datasets

Codes