run_design: Run a design one time

Description Usage Arguments Examples

View source: R/design_helper_functions.R

Description

Run a design one time

Usage

1
run_design(design)

Arguments

design

a DeclareDesign object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
design <-
  declare_model(
    N = 100, X = rnorm(N),
    potential_outcomes(Y ~ (.25 + X) * Z + rnorm(N))
  ) +
  declare_inquiry(ATE = mean(Y_Z_1 - Y_Z_0)) +
  declare_assignment(Z = complete_ra(N, m = 50), legacy = FALSE) +
  declare_measurement(Y = reveal_outcomes(Y ~ Z)) + 
  declare_estimator(Y ~ Z, inquiry = "ATE")

run_design(design)

DeclareDesign documentation built on Feb. 15, 2021, 1:07 a.m.