Skip to contents

Generates the baseline synthetic DGP as defined in the DGP Registry.

Usage

dgp_synth_baseline_v130(
  n,
  seed = NULL,
  include_truth = TRUE,
  oracle_only = FALSE
)

Arguments

n

Integer, number of observations.

seed

Optional seed for reproducibility (passed to cs_set_rng()).

include_truth

Logical; if TRUE, include oracle truth tables where supported.

oracle_only

Logical; if TRUE, return only columns needed for oracle truth generation where supported.

Value

A list with:

  • df: tibble with columns y, w, y0, y1, p, structural_te, X1, X2, X3, X4, X5

  • true_att: numeric scalar

  • true_qst: tibble with columns tau and value

  • meta: list with fields dgp_id = "synth_baseline", type = "synthetic", structural_te = tau

Details

Goal: Sanity check; the happy path benchmark.

Structure:

  • Covariates: \(X \in \mathbb{R}^5\). Active coordinates: \(X_1, X_2\).

  • Baseline outcome: \(\mu_0(X) = 1 + X_1 + 0.5 X_2\).

  • Treatment effect: \(\tau(X) = 1 + 0.5 X_1\).

  • Propensity: \(p(X) = \mathrm{plogis}(0.5 X_1 - 0.5 X_2)\).

  • Noise: \(\varepsilon \sim \mathcal{N}(0, 0.5)\) (standard deviation).