Engineering Informal Institutions
# Overview
This document serves to explain the entire process of conducting analysis for *Engineering informal institutions: Long run impacts of alternative dispute resolution on violence and property rights in Liberia*. I describe the data used for the analyses, then go through each table in the paper and explain where in the code it was made. Then I go through the process of creating a table to help you construct similar functions in R.
## General orientation
All code is run out of the `master.do` file in the project folder. In order to run the code, you should manually set your working directory to where the `master.do` file lives. Then typing `do master` in the Stata console should produce every table in the paper automatically.
`ado/`: Stores a slightly modified version of the `frmttable` package. The code will automatically set Stata to use this version of `frmttable` before any other versions on your machine.
`do/`: This folder contains all do-files in the analysis. It has an `Archive` folder, which is essentially a trash-bin, and a `tables_do` folder. `tables_do` contains all the do-files that define functions used for making tables. Because initially, we are having you replicate the analysis, you don't need to worry about the cleaning files, `import_external`, `import_clean_construct` and `reshaping`. In the future, when it becomes time for you to trace back the creation of a few key variables, we can work together to go through those do-files. The `label_vars` do-file might serve as a useful reference for connecting the labels used in the tables to specific variables.
`data/`: Stores all the `.dta` files used in analysis.
`docs/`: Contains this document.
`logs/`: Contains log files. It was mostly used for exploratory analysis, and is not an integral part of the workflow.
`out/`: Contains the output tables used in the analysis in `tables`, and a pdf document of all tables used in the paper in the `analysis` folder. The tables in the pdf document sho …