Skip to contents

Print methods for treatment effect estimators.

Usage

# S3 method for class 'summary.ddml_ate'
print(x, digits = 3, ...)

# S3 method for class 'summary.ddml_att'
print(x, digits = 3, ...)

# S3 method for class 'summary.ddml_late'
print(x, digits = 3, ...)

Arguments

x

An object of class summary.ddml_ate, summary.ddml_att, and ddml_late, as returned by summary.ddml_ate(), summary.ddml_att(), and summary.ddml_late(), respectively.

digits

The number of significant digits used for printing.

...

Currently unused.

Value

NULL.

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)
#> Warning: : 1 propensity scores were trimmed.
summary(ate_fit)
#> ATE estimation results: 
#>  
#>   Estimate Std. Error t value Pr(>|t|)
#>     -0.144     0.0151   -9.54 1.42e-21