This repository contains scripts and instructions for replicating
Ortagus, J., Skinner, B.T., and Tanner, M. (2021) Investigating Why Academically Successful Community College Students Leave College without a Degree
There are two options to run. After cloning the repository and adding necessary data (see below), either:
- Navigate to the top-level of the project directory and use the
makefile
git clone https://github.com/btskinner/investigating_mrp_rep.git
cd investigating_mrp_rep
make
-
Run the following scripts in order from the
./scripts/r
directory:get_packages.r
get_data.r
make_mrp_data.r
fit_stan.r
poststratify.r
make_figures.r
make_tables.r
checks.r
And then compile the tables and figures in the docs
directory using:
latexmk -pdf -silent tables_figures.tex
The following restricted data files are required:
analysis_data.dta
poststrat_counts.dta
full_no_drop_demographics_data.dta
main_crosswalk.dta
To access these files, see the included file, ACCESSING_RESTRICTED_DATA.md
.
The following file is created by get_data.R
:
second_level_df.rds
A number of intermediate files from IPEDS and the BLS will be downloaded in the process.