Primary analysis (placebo-controlled phase)
These methods estimate the average treatment effect (ATE) during the placebo-controlled phase by borrowing from external controls.
| Method | Function | Reference | Description |
|---|---|---|---|
| EC-IPW | ec_ipw() |
Zhou et al. (2025) | Inverse probability weighting with external control borrowing |
| EC-AIPW | ec_aipw() |
Zhou et al. (2025) | Augmented IPW (doubly robust) |
Both methods support:
- No borrowing (
weight = 0): gives external controls no weight. EC-IPW then uses only RCT data. EC-AIPW still fits its outcome model on all controls, so external data affect its precision, though not its validity - Optimal weight (
weight = NULL): data-adaptive weight minimizing variance - Fixed weight (
weight = 0.3): user-specified borrowing amount - Sandwich variance or bootstrap inference
See vignette("primary_analysis_workflow") for usage.