Run Both Crump et al. Tests
Arguments
- Y
Numeric outcome vector.
- W
Treatment indicator (0/1).
- X
Numeric covariate matrix (no factors; use
as.numeric(factor) - 1to convert).- poly_order
Integer. Default: 1.
- covariate_select
"all", "top_down", or "bottom_up".
- t_threshold
Numeric. Default: 2.0.
- regression
"ols", "logistic", or "poisson".
- offset
Numeric offset vector (Poisson only).