IDEAS home Printed from https://ideas.repec.org/p/boc/csug22/02.html

ddml: Double/debiased machine learning in Stata

Author

Listed:
  • Christian B. Hansen

    (University of Chicago)

  • Mark E. Schaffer

    (Heriot-Watt University)

  • Thomas Wiemann

    (University of Chicago)

  • Achim Ahrens

    (ETH Zürich)

Abstract

We introduce the Stata package ddml, which implements double/debiased machine learning (DDML) for causal inference aided by supervised machine learning. Five different models are supported, allowing for multiple treatment variables in the presence of high-dimensional controls and instrumental variables. ddml is compatible with many existing supervised machine learning programs in Stata.

Suggested Citation

  • Christian B. Hansen & Mark E. Schaffer & Thomas Wiemann & Achim Ahrens, 2022. "ddml: Double/debiased machine learning in Stata," Swiss Stata Conference 2022 02, Stata Users Group.
  • Handle: RePEc:boc:csug22:02
    as

    Download full text from publisher

    File URL: http://repec.org/csug2022/Ahrens-Bern2022-ddml.pdf
    Download Restriction: no
    ---><---

    Other versions of this item:

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. is not listed on IDEAS
    2. Lee, Chenyang & Ogata, Seiichi, 2025. "Every coin has two sides: Dual effects of energy transition on regional sustainable development—A quasi-natural experiment of the New Energy Demonstration City Pilot Policy," Applied Energy, Elsevier, vol. 390(C).
    3. Achim Ahrens & Christian B. Hansen & Mark E. Schaffer & Thomas Wiemann, 2025. "Model Averaging and Double Machine Learning," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 40(3), pages 249-269, April.
    4. Yuchen Lu & Jiakun Zhuang & Jun Chen & Chenlu Yang & Mei Kong, 2025. "The Impact of Farmland Transfer on Urban–Rural Integration: Causal Inference Based on Double Machine Learning," Land, MDPI, vol. 14(1), pages 1-30, January.
    5. Da Gao & Qingshuo Wang & Qingjiang Han, 2025. "How Does Critical Peak Pricing Boost Urban Green Total Factor Energy Efficiency? Evidence from a Double Machine Learning Model," Energies, MDPI, vol. 18(18), pages 1-21, September.
    6. Ciżkowicz, Piotr & Ledóchowski, Michał & Rzońca, Andrzej, 2025. "Fiscal policy and government bond yields: New evidence from the EU," Economic Modelling, Elsevier, vol. 147(C).
    7. Bonaccolto-Töpfer, Marina & Satlukal, Sascha, 2024. "Gender differences in reservation wages: New evidence for Germany," Labour Economics, Elsevier, vol. 91(C).
    8. Ding, Yijiu & Li, Bo & Lan, Dahai & Yu, Chunrong & Zhang, Xueqing, 2025. "Research on wage distortion in R&D and innovation activities —— Evidence from China's listed manufacturing enterprises," International Review of Economics & Finance, Elsevier, vol. 102(C).
    9. Mogstad, Magne & Torgovitsky, Alexander, 2024. "Instrumental variables with unobserved heterogeneity in treatment effects," Handbook of Labor Economics,, Elsevier.
    10. Girma, Sourafel & Paton, David, 2024. "Using double-debiased machine learning to estimate the impact of Covid-19 vaccination on mortality and staff absences in elderly care homes," European Economic Review, Elsevier, vol. 170(C).

    More about this item

    JEL classification:

    • C14 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Semiparametric and Nonparametric Methods: General
    • C21 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Cross-Sectional Models; Spatial Models; Treatment Effect Models
    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:boc:csug22:02. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.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.