IDEAS home Printed from https://ideas.repec.org/p/ifs/cemmap/64-17.html
   My bibliography  Save this paper

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. 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.
    2. 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.
    3. Koenker, Roger W & Bassett, Gilbert, Jr, 1978. "Regression Quantiles," Econometrica, Econometric Society, vol. 46(1), pages 33-50, January.
    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. Victor Chernozhukov & Iván Fernández‐Val & Blaise Melly, 2013. "Inference on Counterfactual Distributions," Econometrica, Econometric Society, vol. 81(6), pages 2205-2268, November.
    2. Melly, Blaise, 2005. "Decomposition of differences in distribution using quantile regression," Labour Economics, Elsevier, vol. 12(4), pages 577-590, August.
    3. 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.
    4. 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.
    5. 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.
    6. Sánchez-Jabba, Andrés Mauricio, 2014. "Etnia y rendimiento académico en Colombia," Chapters, in: Sánchez Jabba, Andrés & Otero Cortés, Andrea (ed.), Educación y desarrollo regional en Colombia, chapter 2, pages 59-100, Banco de la Republica de Colombia.
    7. 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.
    8. 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.
    9. Astrid Kunze, 2008. "Gender wage gap studies: consistency and decomposition," Empirical Economics, Springer, vol. 35(1), pages 63-76, August.
    10. João Pereira & Aurora Galego, 2014. "Inter-Regional Wage Differentials in Portugal: An Analysis Across the Wage Distribution," Regional Studies, Taylor & Francis Journals, vol. 48(9), pages 1529-1546, September.
    11. Shantanu Khanna & Deepti Goel & René Morissette, 2016. "Decomposition analysis of earnings inequality in rural India: 2004–2012," IZA Journal of Labor & Development, Springer;Forschungsinstitut zur Zukunft der Arbeit GmbH (IZA), vol. 5(1), pages 1-26, December.
    12. 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.
    13. 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.
    14. 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.
    15. Collischon Matthias, 2019. "Is There a Glass Ceiling over Germany?," German Economic Review, De Gruyter, vol. 20(4), pages 329-359, December.
    16. 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.
    17. 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.
    18. Deshpande, Ashwini & Goel, Deepti & Khanna, Shantanu, 2018. "Bad Karma or Discrimination? Male–Female Wage Gaps Among Salaried Workers in India," World Development, Elsevier, vol. 102(C), pages 331-344.
    19. 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.
    20. Dohmen, Thomas & Lehmann, Hartmut & Zaiceva, Anzelika, 2008. "The gender earnings gap inside a Russian firm : first evidence from personnel data - 1997 to 2002," Zeitschrift für ArbeitsmarktForschung - Journal for Labour Market Research, Institut für Arbeitsmarkt- und Berufsforschung (IAB), Nürnberg [Institute for Employment Research, Nuremberg, Germany], vol. 41(2/3), pages 157-179.

    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.