ddml
Double/Debiased Machine Learning
Double machine learning in R keeps adding estimands and the inference to go with them.
◆Recent moves
- 8mo ago
Fixes for weighted FPLIV, binomial glmnet and empty stacking weights
A correctness release across the learner wrappers and one estimator: xgboost syntax updated, glmnet predictions fixed for binomial regression, ddml_fpliv() fixed with custom weights, and stacking now tolerates the case where no positive weights come out. The last is the kind of failure that only appears once an ensemble is used on hard data.
View source ↗ - 1y ago
One-way clustered inference and higher default fold counts
Clustered standard errors arrive, which is what makes the estimators usable on the panel and grouped data most applied work involves. Defaults for sample_folds and cv_folds both rise to ten, spending compute to reduce the split-to-split variability double machine learning is known for.
View source ↗ - 2y ago
Propensity score trimming added across the treatment effect estimators
Trimming appears on ddml_ate(), ddml_att() and ddml_late(), addressing the extreme propensity scores that make double machine learning estimates blow up in practice. Corrections to the ATE and LATE scores ship alongside, and mdl_ranger() gains probability forest compatibility.
View source ↗ - 2y ago
Fixes permuted residuals returned by crossval
A single fix for permuted residuals returned by crossval. Narrow, but in a cross-fitting package the residual ordering is load-bearing.
View source ↗ - 2y ago
ATT and LATE estimators join the supported estimands
The release that widened what the package can answer, adding the average treatment effect on the treated and local average treatment effects including the perfect compliance and non-compliance cases. Custom ensemble weights and an mdl_glm wrapper arrive with it, alongside an article on integrating with the did package.
View source ↗