This repository contains the student materials for the final project in EC 320: Introduction to Econometrics at the University of Oregon. Students use a state-year panel to study the relationship between the Affordable Care Act Medicaid expansion and substance use disorder treatment capacity.
The exercise is based on Grooms and Ortega (2019), "Examining Medicaid Expansion and the Treatment of Substance Use Disorders". The authors' original replication archive is available from openICPSR.
- Install R and RStudio.
- Open
ec320-replication-project.Rproj. - Run
source("code/check_project.R")to check the supplied files and packages. - Open
assignment/ProjectRmdSkeleton.Rmd, replace the student information, and complete eachTODOin order. - Knit the completed file to HTML.
The template deliberately provides structure and hints without providing completed regressions or interpretations.
assignment/: the student-facing R Markdown template and a rendered blank copy.data/derived/: compact teaching datasets used in the assignment.code/: a one-command setup and validation check.docs/: a data dictionary, data provenance, and assignment notes.tests/: lightweight checks for repository structure and data integrity.
The teaching files are state-year aggregates prepared from the public Grooms and Ortega replication data. They cover the 50 states, the District of Columbia, and several territories from 2010 through 2016, with a small number of missing territory-years. See docs/DATA_PROVENANCE.md before reusing the data. The original deposit remains the authoritative source.
The assignment uses R with tidyverse, fixest, and knitr. Package versions are not locked because this is a classroom template, but the checks record the local R session for troubleshooting.
Grooms, Jevay, and Alberto Ortega. 2019. "Examining Medicaid Expansion and the Treatment of Substance Use Disorders." AEA Papers and Proceedings 109: 187-192. https://doi.org/10.1257/pandp.20191090.
David Hall, dhall7@uoregon.edu