PFS simulation
How the statistics work
Save or restore assumptions

Save inputs, sources, and run history as a scenario file. Import a saved file to use it again.

Example assumptions. Review for your trial.

Enrollment

Known enrollment counts
Move the whole timeline

PFS by arm

Analysis

Input notes
  • Edit either the end date or duration. A month is 30.44 days; dates round to a whole day.
  • Left: earlier · Center: even · Right: later
  • One date,count per line. Start at 0 on the start date. End at total patients on the end date. Counts replace the skew curve; enrollment is even within each interval.
  • Shift start, end, check date, analysis date, and known counts by the same number of days. Keep durations and all other inputs.
  • The event-count check uses this date too.
  • Change later scans in Advanced.
  • Measured from the last enrollment date. The target may remain unreached.
  • Edit this date or the follow-up limit above. Analysis can occur before this date.
  • Event date + reporting delay + readout delay = possible readout date. Each delay is fixed across patients.
  • PFS medians describe the reference-risk group before scan delay. To use a published median, fit it in Advanced.
  • Allocation ratio: 1 for each arm gives equal enrollment.
  • Use for another trial keeps numbers and removes example names and sources. Review each input.
Advanced

Survival shape

Each arm's median is preserved when shape changes. Different shapes or late multipliers can create changing hazard ratios.

Assessments and follow-up

The change applies after the first scheduled scan at or after the change point. Enter 240 to keep the first interval across a shorter trial.

Population and analysis

Random allocation uses fixed arm totals. Risk group is independent of assignment. This does not reproduce an undisclosed sponsor stratification plan.

Simulation settings

Use 500 for tuning and 2,000 or more for final checks. Reported Monte Carlo intervals show simulation error, not uncertainty in clinical truth.
Ready. Review the example inputs.
Model:
Inputs changed. Select Simulate to update results.
Enrollment calendar

Preview of the current inputs. Enrollment counts are expected values; simulated counts can vary.

Total enrolled

New patients per month

Monthly enrollment table

Results

Select Simulate to show results.

Events over time

Median and 10th–90th percentile across simulations, for the selected arms.

Observed PFS

Power at the analysis cutoff

One simulated trial

Patient records

First 12 simulated patients at cutoff. Save Patients CSV for all enrolled patients. These are synthetic records.

Change one input

Compare one input change at a time. Use the same seeds and up to 400 trials per case.

Test control PFS, treatment PFS, Weibull shape, and loss to follow-up.

Compare with a reported event count

Compare the reported count with 25 PFS cases at the check date. Include reporting delay. A matching count does not establish treatment benefit.

Shows how often each PFS case matches the count. It does not estimate the probability of treatment benefit.

Assumptions and limits

    Input sources and gaps
    Past runs

    Past runs show input changes and their results. Save inputs to keep this history.

    No completed runs yet.

    Checks

    Checked 2026-10-07. The shared test suite passed 62 tests, including 14 PFS-specific tests. The browser checks passed in a fresh Chrome session with the standalone file opened through file://.

    • Cox HR and standard error match statsmodels PHReg with Efron ties, with and without stratification, to seven decimal places. Log-rank chi-square matches to eight decimal places; p-values agree within 0.0000002.
    • KM and Greenwood intervals agree with statsmodels. A hand-calculated RMST fixture checks integration and rejects unsupported extrapolation.
    • Tests cover allocation totals, event/assessment/censoring chronology, future-enrollee exclusion, target ties, unreached targets, seed reproducibility, patient-specific random streams, nonconstant event counts, cause splitting, dropout independence, enrollment milestones, and observed-median calibration.
    • Operating-characteristic checks use 3,000 null trials, 3,000 treatment-effect trials against a Schoenfeld benchmark, and 2,500 three-arm null trials for Holm family error control. The continuous-time benchmark uses daily assessments; it is not the same as a scan-based clinical scenario.
    • Browser checks cover the default 500-trial run, input changes, stale output handling, preservation of arm inputs, nine sensitivity scenarios, the 25-cell event-count grid, three result export formats, scenario round trips, calibration, invalid inputs, cancellation, early cutoff, and a 390-pixel mobile layout. No browser JavaScript errors occurred.
    • Seven trial-setup checks cover enrollment previews, skew, date and duration controls, known counts, moving dates across leap day, generic trial save/restore, invalid inputs, and a new two-arm simulation. Patient-relative outcomes stay unchanged when the timeline moves.

    These checks support the implemented mathematics and user flows. They do not validate the illustrative AVBP clinical assumptions or reproduce its undisclosed SAP. Safari and Firefox have not been tested.