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. (2024b) | Inverse probability weighting with external control borrowing |
| EC-AIPW | ec_aipw() |
Zhou et al. (2024b) | Augmented IPW (doubly robust) |
Both methods support:
- No borrowing (
weight = 0): uses only RCT data - 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.