Bayesian two-arm trial design with historical controls
Exact power and type I error of a two-arm binary trial that borrows historical controls through a power prior.
과거 대조군 차용 베이즈 두 군 설계 — 과거 대조군을 검정력 사전분포(power prior)로 차용하는 이분형 두 군 시험의 검정력과 1종 오류를 정확하게 계산합니다.
Runs Power Prior Analysis (Historical Data Borrowing) with: design set to “on”.
기본 방법(Power Prior Analysis (Historical Data Borrowing))에 다음 설정을 고정해 실행합니다: design = on.
If we borrow a historical control arm, what are the power and type I error of our two-arm trial with a binary response?
과거 대조군 자료를 차용하면 이분형 반응을 쓰는 두 군 임상시험의 검정력과 1종 오류는 얼마인가요?
Every possible pair of binomial outcomes is enumerated, so power and type I error under the power prior are exact rather than simulated. Behind it is Power Prior Analysis (Historical Data Borrowing) with design = true already set, and you still give p_control, p_treat and n_per_arm; checks and report are the same as for Power Prior Analysis (Historical Data Borrowing).
When to use Bayesian two-arm trial design with historical controls
- You plan a two-arm trial with a binary endpoint and want to justify borrowing historical controls.
- Reviewers ask how much borrowing inflates type I error when the current control rate differs from the historical one.
When to use something else
- The endpoint is continuous or time to event; this design calculation covers binary responses only.
- You want to try other settings side by side; open Power Prior Analysis (Historical Data Borrowing) and set the options yourself.
What you still provide
- Data: a table (CSV or Excel) with an outcome variable and a grouping variable.
- p control
- p treat
- n per arm
Assumptions and requirements
The same as for Power Prior Analysis (Historical Data Borrowing):
- Historical and current rows measure the same outcome in comparable populations, up to the discount
- Rows are independent within each study
- Binary outcomes are coded 0/1; numeric outcomes are roughly normal
What the analysis reports
The output of Power Prior Analysis (Historical Data Borrowing), with the preset shown in the settings:
- Estimates without borrowing, with full pooling, with fixed a0, with the normalised power prior and with empirical-Bayes a0
- Posterior mean and interval of a0
- Empirical-Bayes a0 and marginal likelihoods
- Effective number of historical rows borrowed
How this is validated
검증 근거
This variant runs the same engine as Power Prior Analysis (Historical Data Borrowing) with the settings above fixed, so the evidence is that method’s: compared with independent computations. No separate checks of this preset are claimed. Read the base method’s validation record.
이 설정 묶음은 Power Prior Analysis (Historical Data Borrowing)와 같은 엔진으로 돕니다. 검증 근거는 기본 방법의 것이며, 이 설정만 따로 검증했다고 주장하지 않습니다.
Run this variant
- Data you need
- a table (CSV or Excel) with an outcome variable and a grouping variable
- Price
- Same as Power Prior Analysis (Historical Data Borrowing): 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations, as recorded for Power Prior Analysis (Historical Data Borrowing) (see its checks)
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.