Inference Methods for Treatment Effect Estimators.
Source:R/ddml_ate.R
, R/ddml_att.R
, R/ddml_late.R
summary.ddml_ate.Rd
Inference methods for treatment effect estimators.
Arguments
- object
An object of class
ddml_ate
,ddml_att
, andddml_late
, as fitted byddml_ate()
,ddml_att()
, andddml_late()
, respectively.- ...
Currently unused.
Examples
# Construct variables from the included Angrist & Evans (1998) data
y = AE98[, "worked"]
D = AE98[, "morekids"]
X = AE98[, c("age","agefst","black","hisp","othrace","educ")]
# Estimate the average treatment effect using a single base learner, ridge.
ate_fit <- ddml_ate(y, D, X,
learners = list(what = mdl_glmnet,
args = list(alpha = 0)),
sample_folds = 2,
silent = TRUE)
summary(ate_fit)
#> ATE estimation results:
#>
#> Estimate Std. Error t value Pr(>|t|)
#> -0.1547346 0.01546766 -10.00375 1.467396e-23