README.md

diffindiff

The goal of diffindiff is to provide a simple function to run difference-in-differences estimation, as described in Card and Krueger (1994). This package also contains the data from their paper.

Installation

NOT (YET) ON CRAN!!!!

You can install the released version of diffindiff from CRAN with:

install.packages("diffindiff")

You can install it from Github:

remotes::install_github("b-rodrigues/diffindiff")

Example

Re-creating Figure 1 from Card and Krueger (1994):

library(diffindiff)
library(tidyverse)

ggplot(dataset, aes(wage_st)) + geom_density(aes(fill = state), alpha = 0.3) +
 facet_wrap(vars(observation)) + theme_blog() +
 theme(legend.title = element_blank(), plot.caption = element_text(colour = "white")) +
 labs(title = "Distribution of starting wage rates in fast food restaurants",
 caption = "On April 1st, 1992, New Jersey's minimum wage rose from $4.25 to $5.05. Source: Card and Krueger (1994)")


b-rodrigues/diffindiff documentation built on May 13, 2019, 11:56 p.m.