Simple Double-ML implementation with cross-fitting
DMLReg.Rd
Simple Double-ML implementation with cross-fitting
Arguments
- x
Matrix of covariates
- d
treatment variable
- y
The dependent variable
- dreg
function that wraps learner - e.g. glmnet - for pscore
- yreg
function that wraps learner - e.g. glmnet - for outcome regression
- D
vector of factor variables to be partialed out
- nfolds
number of folds for cross fitting