/EconML-with-R

How to use EconML within R

Primary LanguageHTML

EconML with R and the reticulate package

EconML is a Python package for estimating heterogeneous treatment effects from observational data via machine learning. In this repo you will learn how to call EconML from R using the reticulate R package. The code adheres as closely as possible to the Tidyverse principles and style.

To this end, I reproduce two examples that appear in the "Double Machine Learning: Use Cases and Examples" EconML notebook:

  1. Example Usage with Single Continuous Treatment Observational Data
    [R Markdown notebook code / RStduio Cloud project / Original Python notbook (section 4)]

  2. Example Usage with Multiple Continuous Treatment, Multiple Outcome Observational Data
    [R Markdown notebook code / RStduio Cloud project / Original Python notbook (section 5)]