This folder was made to facilitate replication of the results and PDF of the paper "Youth Labor Index for Low Income Countries".
R (preferably RStudio) is necessary to fully reproduce the paper.
The paper can be replicated in RStudio in two ways:
- by running "master.R" in the root folder, or
- by knitting the file "index.Rmd" in the /markdown folder (shift + cmd + k on Mac).
Either method generates a PDF called "index.pdf" in the /markdown folder. This is the full, replicated paper.
The default path "/Volumes/nadel/research/Data/PhDs/Bart 2022/Paper 2 - Index" is used in master.R. If the project folder is copied into a different directory, this path name needs to be adjusted.
As mentioned in the file "master.R", certain latex tables needed additional formatting and could not be generated directly in the Rmarkdown document. To replicate these tables, simply run the script "code/index_tables_for_replication.R" in the /code folder.
If you have any questions, please see the comments in "master.R" or contact the author at bartlomiej.kudrzycki[at]nadel.ethz.ch