run_design: Run a design one time

View source: R/design_helper_functions.R

run_designR Documentation

Run a design one time

Description

Run a design one time

Usage

run_design(design)

Arguments

design

a DeclareDesign object

Examples

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)) +
  declare_measurement(Y = reveal_outcomes(Y ~ Z)) + 
  declare_estimator(Y ~ Z, inquiry = "ATE")

run_design(design)



DeclareDesign documentation built on June 21, 2022, 1:05 a.m.