Constructs an experimental study data object for estimating causal effects from randomized experiments.
Arguments
- Y
Numeric vector. Outcome variable.
- Z
Numeric vector. Binary treatment indicator (0/1).
- X
Numeric matrix, vector, or NULL. Covariates (optional).
- design
A design object (e.g., from
crd()orbernoulli()). Default is CRD.