Generic Machine Learning Inference
Overview
Generic Machine Learning Inference on heterogeneous treatment effects in randomized experiments as proposed in Chernozhukov, Demirer, Duflo and Fernández-Val (2020) doi:10.48550/arXiv.1712.04802. This package's workhorse is the 'mlr3' framework of Lang et al. (2019) doi:10.21105/joss.01903, which enables the specification of a wide variety of machine learners. The main functionality, GenericML(), runs Algorithm 1 in Chernozhukov, Demirer, Duflo and Fernández-Val (2020) doi:10.48550/arXiv.1712.04802 for a suite of user-specified machine learners. All steps in the algorithm are customizable via setup functions. Methods for printing and plotting are available for objects returned by GenericML(). Parallel computing is supported.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-08
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 29
- Examples that run
- 100%23 run in a plain check
- Exported functions with examples
- 91%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 45%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/mwelz/genericml on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing GenericML adds 117 packages (60 with compiled code, 89 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Package metadata
- First published
- 2021-11-24
- Total releases
- 6 / 5 yrs
- License
- GPL (>= 3) OSI
- Download size
- 66 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("GenericML")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.