IDEAS home Printed from https://ideas.repec.org/p/ifs/cemmap/64-17.html

Counterfactual analysis in R: a vignette

Author

Listed:
  • Mingli Chen

    (Institute for Fiscal Studies and Warwick)

  • Victor Chernozhukov

    (Institute for Fiscal Studies and MIT)

  • Ivan Fernandez-Val

    (Institute for Fiscal Studies and Boston University)

  • Blaise Melly

    (Institute for Fiscal Studies)

Abstract

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.

Suggested Citation

  • Mingli Chen & Victor Chernozhukov & Ivan Fernandez-Val & Blaise Melly, 2017. "Counterfactual analysis in R: a vignette," CeMMAP working papers CWP64/17, Centre for Microdata Methods and Practice, Institute for Fiscal Studies.
  • Handle: RePEc:ifs:cemmap:64/17
    as

    Download full text from publisher

    File URL: https://www.ifs.org.uk/uploads/CWP641717.pdf
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Koenker, Roger W & Bassett, Gilbert, Jr, 1978. "Regression Quantiles," Econometrica, Econometric Society, vol. 46(1), pages 33-50, January.
    2. Oaxaca, Ronald, 1973. "Male-Female Wage Differentials in Urban Labor Markets," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 14(3), pages 693-709, October.
    3. Alan S. Blinder, 1973. "Wage Discrimination: Reduced Form and Structural Estimates," Journal of Human Resources, University of Wisconsin Press, vol. 8(4), pages 436-455.
    4. Hong H. & Chernozhukov V., 2002. "Three-Step Censored Quantile Regression and Extramarital Affairs," Journal of the American Statistical Association, American Statistical Association, vol. 97, pages 872-882, September.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Melly, Blaise, 2005. "Decomposition of differences in distribution using quantile regression," Labour Economics, Elsevier, vol. 12(4), pages 577-590, August.
    2. Valentine Fays & Benoît Mahy & François Rycx, 2023. "Wage differences according to workers' origin: The role of working more upstream in GVCs," LABOUR, CEIS, vol. 37(2), pages 319-342, June.
    3. Huong Thu Le & Ha Trong Nguyen, 2018. "The evolution of the gender test score gap through seventh grade: new insights from Australia using unconditional quantile regression and decomposition," IZA Journal of Labor Economics, Springer;Forschungsinstitut zur Zukunft der Arbeit GmbH (IZA), vol. 7(1), pages 1-42, December.
    4. Sergio Scicchitano, 2014. "The gender wage gap among Spanish managers," International Journal of Manpower, Emerald Group Publishing Limited, vol. 35(3), pages 327-344, May.
    5. Jean-Marc Fournier & Isabell Koske, 2012. "The determinants of earnings inequality: evidence from quantile regressions," OECD Journal: Economic Studies, OECD Publishing, vol. 2012(1), pages 7-36.
    6. Ramos, Raul & Sanromá, Esteban & Simón, Hipólito, 2022. "Collective bargaining levels, employment and wage inequality in Spain," Journal of Policy Modeling, Elsevier, vol. 44(2), pages 375-395.
    7. Astrid Kunze, 2008. "Gender wage gap studies: consistency and decomposition," Empirical Economics, Springer, vol. 35(1), pages 63-76, August.
    8. Daniela Piazzalunga & Maria Laura Di Tommaso, 2019. "The increase of the gender wage gap in Italy during the 2008-2012 economic crisis," The Journal of Economic Inequality, Springer;Society for the Study of Economic Inequality, vol. 17(2), pages 171-193, June.
    9. Zhu, Rong, 2016. "Wage differentials between urban residents and rural migrants in urban China during 2002–2007: A distributional analysis," China Economic Review, Elsevier, vol. 37(C), pages 2-14.
    10. Chzhen, Yekaterina & Mumford, Karen, 2011. "Gender gaps across the earnings distribution for full-time employees in Britain: Allowing for sample selection," Labour Economics, Elsevier, vol. 18(6), pages 837-844.
    11. Collischon Matthias, 2019. "Is There a Glass Ceiling over Germany?," German Economic Review, De Gruyter, vol. 20(4), pages 329-359, December.
    12. Sonja C. Kassenboehmer & Mathias G. Sinning, 2014. "Distributional Changes in the Gender Wage Gap," ILR Review, Cornell University, ILR School, vol. 67(2), pages 335-361, April.
    13. Böheim, René & Himpele, Klemens & Mahringer, Helmut & Zulehner, Christine, 2013. "The distribution of the gender wage gap in Austria : evidence from matched employer-employee data and tax records," Journal for Labour Market Research, Institut für Arbeitsmarkt- und Berufsforschung (IAB), Nürnberg [Institute for Employment Research, Nuremberg, Germany], vol. 46(1), pages 19-34.
    14. Domenico Depalo & Raffaela Giordano & Evangelia Papapetrou, 2015. "Public–private wage differentials in euro-area countries: evidence from quantile decomposition analysis," Empirical Economics, Springer, vol. 49(3), pages 985-1015, November.
    15. Kaya, Ezgi, 2019. "Gender wage gap across the quantiles:What is the role of firm segregation?," Cardiff Economics Working Papers E2019/7, Cardiff University, Cardiff Business School, Economics Section.
    16. Nicodemo, Catia, 2009. "Gender Pay Gap and Quantile Regression in European Families," IZA Discussion Papers 3978, Institute of Labor Economics (IZA).
    17. Rahman, Mustafizur & Al-Hasan, Md., 2018. "Male-Female wage gap and informal employment in Bangladesh: A quantile regression approach," MPRA Paper 90131, University Library of Munich, Germany.
    18. Kevin F. Hallock & Xin Jin & Michael Waldman, 2022. "The total compensation gap, wage gap and benefit gap between workers with and without a disability," British Journal of Industrial Relations, London School of Economics, vol. 60(1), pages 3-31, March.
    19. Rosalia Castellano & Gaetano Musella & Gennaro Punzo, 2019. "Exploring changes in the employment structure and wage inequality in Western Europe using the unconditional quantile regression," Empirica, Springer;Austrian Institute for Economic Research;Austrian Economic Association, vol. 46(2), pages 249-304, May.
    20. Sergio Scicchitano & Marco Biagetti & Antonio Chirumbolo, 2020. "More insecure and less paid? The effect of perceived job insecurity on wage distribution," Applied Economics, Taylor & Francis Journals, vol. 52(18), pages 1998-2013, April.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ifs:cemmap:64/17. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Emma Hyman (email available below). General contact details of provider: https://edirc.repec.org/data/cmifsuk.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.