centre for microdata methods and practice

ESRC centre

cemmap is an ESRC research centre


Keep in touch

Subscribe to cemmap news

Counterfactual analysis in R: a vignette

Authors: Mingli Chen , Victor Chernozhukov , Ivan Fernandez-Val and Blaise Melly
Date: 30 December 2017
Type: cemmap Working Paper, CWP64/17
DOI: 10.1920/wp.cem.2017.6417


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.

Download full version

Search cemmap

Search by title, topic or name.

Contact cemmap

Centre for Microdata Methods and Practice

How to find us

Tel: +44 (0)20 7291 4800

E-mail us