ndr_core | R Documentation |
ndr_learner
. It executes steps 2 and 4 of algorithms 1 and 2 in Knaus (2020).Core function of ndr_learner
. It executes steps 2 and 4 of algorithms 1 and 2 in Knaus (2020).
ndr_core(
ml,
delta,
y,
x,
w_mat,
m_mat,
e_mat,
cf_mat,
xnew = NULL,
nfolds = 5,
path = NULL,
quiet = TRUE
)
ml |
List of methods to be used in |
delta |
vector of doubly robust score. E.g. create via |
y |
Vector of variable to be predicted. |
x |
Matrix of covariates. |
w_mat |
Logical matrix of treatment indicators (n x T+1). For example created by |
m_mat |
n x T+1 matrix with fitted outcome values. |
e_mat |
n x T+1 matrix with propensity scores. |
cf_mat |
Logical matrix with k columns of indicators representing the different folds
(for example created by |
xnew |
Covariate matrix of test sample |
nfolds |
Number of folds used in cross-validation of ensemble weights (default |
path |
Optional path to save the |
quiet |
If FALSE, ensemble estimators print method that is currently running. |
n x 2 matrix containing DR- and NDR-learner predictions.
Knaus, M. C. (2020). Double machine learning based program evaluation under unconfoundedness. arXiv preprint arXiv:2003.03191.http://arxiv.org/abs/2003.03191
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.