Working Paper

Counterfactual analysis in R: a vignette


Mingli Chen, Victor Chernozhukov, Ivan Fernandez-Val, Blaise Melly

Published Date

30 December 2017


Working Paper (CWP64/17)

The R package Counterfactual implements the estimation and inference methods of Chernozhukov et al. (2013) for counterfactual analysis. The counterfactual distributions considered are the result of changing either the marginal distribution of covariates related to the outcome variable of interest, or the conditional distribution of the outcome given the covariates. They can be applied to estimate quantile treatment effects and wage decompositions. This vignette serves as an introduction to the package and displays basic functionality of the commands contained within.