Tutorials
Each tutorial generates example data, fits an estimator, and prints the results. Choose a Python notebook, a Python script, or an R vignette.
Calibrated DML
| Example | Python | R |
|---|---|---|
| Fit from raw data Binary and multi-arm treatment; estimates and intervals. | Notebook · Script | Vignette |
| Custom learners Built-in models, scikit-learn, SuperLearner, and sl3. | Notebook · Script | Vignette |
| Supplied predictions Cross-fitted nuisance matrices and treatment-level ordering. | Notebook · Script | Vignette |
Adaptive binary-treatment estimation
Compare the calibrated R-learner with the plug-in mode.
Python notebook · Python script · R vignette
Run a tutorial locally
Run an example
git clone https://github.com/Larsvanderlaan/calibratedDML.git
cd calibratedDML
python -m pip install -e .
python Python/tutorials/standard_workflows.pyinstall.packages("remotes")
remotes::install_github(
"Larsvanderlaan/calibratedDML",
build_vignettes = TRUE
)
browseVignettes("calibratedDML")