# Homework 5

## Instructions

In this assignment, you’ll recreate the Insurance and Medicaid Expansion data and answer a few questions along the way. As with the prior assignments, the first step is to make sure you have the Insurance Access repository and downloaded all of the raw data sources. Once you have the data downloaded and the code running, answer the following questions.

The due date for initial submission is **4/24**, the revision due date is **4/29**, and the final due date is the date of our final exam, **5/8**.

## Summarize the data

Plot the share of the adult population with direct purchase health insurance over time.

Discuss the reduction in direct purchase health insurance in later years. Can you list a couple of policies that might have affected the success of the direct purchase insurance market?

Plot the share of the adult population with Medicaid over time.

Plot the share of uninsured over time, separately by states that expanded Medicaid in 2014 versus those that did not. Drop all states that expanded after 2014.

## Estimate ATEs

For the rest of the assignment, we’re going to apply the difference-in-differences estimator to the question of Medicaid expansion and uninsurance.

Calculate the average percent of uninsured individuals in 2012 and 2015, separately for expansion and non-expansion states. Present your results in a basic 2x2 DD table.

Estimate the effect of Medicaid expansion on the uninsurance rate using a standard DD regression estimator, again focusing only on states that expanded in 2014 versus those that never expanded.

Include state and year

*fixed effects*in your estimates. Try using the`lfe`

or`fixest`

package to estimate this instead of directly including the fixed effects.Repeat the analysis in question 7 but include all states (even those that expanded after 2014). Are your results different? If so, why?

Provide an “event study” graph showing the effects of Medicaid expansion in each year. Use the specification that includes state and year fixed effects, limited to states that expanded in 2014 or never expanded.

Repeat part 9 but again include states that expanded after 2014. Note: this is tricky…you need to put all states onto “event time” to create this graph.