Chance the design reaches its efficacy objective.
Patients with usable 6-month pain outcomes.
Accrual plus follow-up and review overhead.
Enrollment avoided through interim stopping.
Prototype total trial cost under the current assumptions.
Expected patients assigned to the higher-risk arm.
Expected chronic pain cases avoided among treated patients.
Live Interpretation
Success Probability
Control prevalence by treatment effect.
Observed Outcome Completeness
Follow-up rate by missing outcome percentage.
Expected Cost
Enrollment rate by cost per enrolled patient.
Inferior Arm Exposure
Control prevalence by treatment effect.
Endpoint
Primary estimand and endpoint framing used in the prototype.
The outcome is binary chronic postoperative pain measured 6 months after surgery. The control-arm prevalence slider defines the baseline risk, and the treatment effect slider applies an odds ratio to derive the treated-arm event probability.
Simulation Engine
Backend method used for all summary metrics and heatmaps.
Each request runs Monte Carlo simulation in the FastAPI backend. For each replicate, the app simulates two-arm binomial outcomes under the chosen prevalence and odds ratio, then evaluates success using a large-sample chi-square style comparison of observed binary outcomes. In implementation, this is handled through the equivalent z-statistic formulation for a two-arm test of proportions.
Fixed Design
How the non-adaptive design is represented.
The fixed design enrolls the full planned sample size and performs one final analysis. Interim timing and stopping thresholds are not used when this design is selected.
Group Sequential Design
How interim stopping is handled in the prototype.
The group sequential design uses one interim look at the selected fraction of planned enrollment. Early efficacy is triggered when the interim test statistic exceeds the selected one-sided normal quantile threshold. Early futility is based on conditional power falling below the chosen futility threshold.
Follow-Up And Missingness
How analyzable outcomes are generated.
Follow-up rate and missing outcome percentage reduce the number of observed 6-month endpoints before the analysis step. In the current implementation, loss to follow-up and missingness are nondifferential and independent of the pain outcome.
Expected Duration
The planning formula used for the timeline metric.
Expected duration is approximated as accrual time plus a fixed 6-month follow-up period, a 3-month startup and closeout buffer, and a small interim review overhead for group sequential designs. Accrual currently assumes about 70 enrolled patients per month.
Expected Cost
Prototype economic summary used on the dashboard.
Expected cost is a planning estimate rather than a formal health-economic model. The current implementation assumes a fixed startup cost of $1.2M, a per-enrolled patient cost of $8,500, a per-analyzable-patient follow-up and outcome-processing cost of $2,000, a monthly operating cost of $65,000, and an additional $180,000 interim-review overhead for the group sequential design. The displayed value is the sum of those components in millions of dollars.
Inferior Arm Exposure
How exposure to the worse arm is approximated.
This metric estimates the expected number of patients assigned to the higher-risk arm under the assumed treatment effect direction. In the current prototype, the design uses equal randomization, so inferior-arm exposure is approximated as one half of expected enrollment whenever the treatment odds ratio differs from 1.00. This is intentionally simple and does not yet model uncertainty about which arm is truly inferior in any single simulated replicate.
Pain Cases Prevented
Clinical impact metric derived from the simulated risk reduction.
Pain cases prevented is calculated from the absolute risk reduction implied by the selected control prevalence and treatment odds ratio. The app computes the treated event probability, subtracts it from the control event probability, and multiplies that risk difference by the expected analyzable number of treated patients. This gives an estimate of how many chronic postoperative pain cases are avoided among patients with observed 6-month outcomes.
Prototype Formulas
Compact equation-style summary of the added decision metrics.
`Cost = Startup + (c_enroll x Expected Enrollment) + (c_followup x Expected Analyzable N) + (c_month x Duration) + Interim Overhead`
`Inferior Arm Exposure ~= Expected Enrollment / 2`
`Cases Prevented = (p_control - p_treatment) x (Expected Analyzable N / 2)`
Interpretation Notes
What this prototype is good for and what it does not yet include.
This app is intended for scenario exploration and communication, not for regulatory-ready operating characteristics. It does not yet include alpha-spending functions such as O'Brien-Fleming or Pocock boundaries, site effects, informative missingness, unequal follow-up windows, or covariate-adjusted analyses.
Reference Scenarios
Named scenarios generated from the current design assumptions.
| Scenario | Control Rate | Odds Ratio | PoS | Expected N | Duration |
|---|