Generates a synthetic DGP with treatment effect heterogeneity driven by a sign flip on X1: tau(X) = +1 if X1 > 0, else -1. Noise is Student-t with df = 4 scaled to sigma = 0.5 to induce heavier tails and heterogeneity in the QST curve.
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.
Details
Goal: Verify detection of distributional heterogeneity.
Structure: Same \(X\), \(\mu_0\), and \(p\) as synth_baseline.
Mechanism: \(\tau(X)\) flips sign based on \(X_1\):
\(\tau(X) = +1.0\) if \(X_1 > 0\).
\(\tau(X) = -1.0\) if \(X_1 \le 0\).
Noise: Student-t with \(df = 4\), scaled to \(\sigma = 0.5\).