Run a design one time

run_design(design)

Arguments

design

a DeclareDesign object

Examples

design <- declare_population(N = 100, X = rnorm(N)) + declare_potential_outcomes(Y ~ (.25 + X) * Z + rnorm(N)) + declare_assignment(m = 50) + declare_estimand(ATE = mean(Y_Z_1 - Y_Z_0)) + declare_estimator(Y ~ Z, estimand = "ATE") run_design(design)
#> estimand_label estimand estimator_label term estimate std.error statistic #> 1 ATE 0.3423254 estimator Z 0.326886 0.2447019 1.335854 #> p.value conf.low conf.high df outcome #> 1 0.1852983 -0.159915 0.813687 81.87667 Y