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

Counterfactual analysis in R: a vignette

Author

Listed:
  • Mingli Chen
  • Victor Chernozhukov
  • Ivan Fernandez-Val
  • Blaise Melly

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 64/17, Institute for Fiscal Studies.
  • Handle: RePEc:azt:cemmap:64/17
    DOI: 10.1920/wp.cem.2017.6417
    as

    Download full text from publisher

    File URL: https://www.cemmap.ac.uk/wp-content/uploads/2020/08/CWP6417.pdf
    Download Restriction: no

    File URL: https://libkey.io/10.1920/wp.cem.2017.6417?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    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. 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. 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.
    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. Francine D. Blau & Lawrence M. Kahn & Nikolai Boboshko & Matthew Comey, 2024. "The Impact of Selection into the Labor Force on the Gender Wage Gap," Journal of Labor Economics, University of Chicago Press, vol. 42(4), pages 1093-1133.
    6. 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.
    7. Joseph G. Altonji & Ulrich Doraszelski, 2005. "The Role of Permanent Income and Demographics in Black/White Differences in Wealth," Journal of Human Resources, University of Wisconsin Press, vol. 40(1).
    8. 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.
    9. 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.
    10. Collischon Matthias, 2019. "Is There a Glass Ceiling over Germany?," German Economic Review, De Gruyter, vol. 20(4), pages 329-359, December.
    11. Wiji Arulampalam & Alison L. Booth & Mark L. Bryan, 2007. "Is There a Glass Ceiling over Europe? Exploring the Gender Pay Gap across the Wage Distribution," ILR Review, Cornell University, ILR School, vol. 60(2), pages 163-186, January.
    12. 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.
    13. Philippe Van Kerm & Seunghee Yu & Chung Choe, 2016. "Decomposing quantile wage gaps: a conditional likelihood approach," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 65(4), pages 507-527, August.
    14. 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.
    15. Jeremiah Richey & Alicia Rosburg, 2020. "Decomposing joint distributions via reweighting functions: an application to intergenerational economic mobility," Econometric Reviews, Taylor & Francis Journals, vol. 39(6), pages 541-558, July.
    16. Stahlschmidt, Stephan & Eckardt, Matthias & Härdle, Wolfgang Karl, 2014. "Expectile treatment effects: An efficient alternative to compute the distribution of treatment effects," SFB 649 Discussion Papers 2014-059, Humboldt University Berlin, Collaborative Research Center 649: Economic Risk.
    17. Villarreal, Francisco G., 2014. "Financial Services and Household Inequality in Mexico," MPRA Paper 57075, University Library of Munich, Germany.
    18. Astrid Kunze, 2008. "Gender wage gap studies: consistency and decomposition," Empirical Economics, Springer, vol. 35(1), pages 63-76, August.
    19. 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.
    20. Vladimir Gimpelson & Anna Lukiyanova & Anna Sharunina, 2015. "Estimating the Public-Private Wage Gap in Russia: What Does Quantile Regression Tell Us?," HSE Working papers WP BRP 104/EC/2015, National Research University Higher School of Economics.

    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:azt: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: Dermot Watson (email available below). General contact details of provider: https://edirc.repec.org/data/ifsssuk.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.