PFS simulation: methods
Generate patient event times, apply scan and censoring rules, then estimate PFS and power.
Examples use illustrative values.
PFS distribution
With an exponential distribution and a 10-month median, 50% remain free of progression or death at 10 months and 25% at 20 months.
Scroll chart to see all labels.
Median and event times
Random draws give separate progression and death times. Their minimum defines underlying PFS.
Enrollment dates place each patient's PFS clock on the calendar. Enrollment skew changes those dates, not the PFS clock.
Random draws
For an exponential time, T = −ln(U)/λ, with λ = ln(2)/m and U uniform between 0 and 1. The engine splits one PFS hazard into progression (1−d)λ and death dλ. Separate independent clocks preserve the combined hazard.
For Weibull survival, S(t) = exp[−ln(2)(t/m)k]. Shape k=1 gives the exponential curve. The optional risk group multiplies hazard; the entered median describes the reference-risk group.
Scans and censoring
Scans reveal progression after it occurs. A patient without an observed event contributes follow-up until the last adequate assessment before cutoff or loss to follow-up.
Scroll timelines to see all dates.
Events
Progression is recorded at the first attended scan after it occurs. Death uses its event time, subject to the selected censoring rules.
Analysis cutoff
Stop at the target event count or the chosen date, within the follow-up limit. Patients not yet enrolled are excluded. A target can remain unreached.
Kaplan–Meier, log-rank, and Cox
These methods use the same patient records to estimate survival, test differences, and estimate hazard ratios.
Kaplan–Meier calculation
- 4 mo10 at risk, 2 events.
1 × (1 − 2/10) = 80% - 6 mo2 patients censored. Survival stays at 80%; 6 patients remain at risk.
- 8 mo6 at risk, 1 event.
0.80 × (1 − 1/6) = 66.7%
The risk set excludes prior events and prior censoring. The median is where the curve first reaches 50%; this example has not reached it.
Scroll chart to see all labels.
| Month | At risk before | Events | Censored |
|---|---|---|---|
| 4 | 10 | 2 | 0 |
| 6 | 8 | 0 | 2 |
| 8 | 6 | 1 | 0 |
Observed events versus expected events
At one event time, suppose 40 treatment and 60 control patients remain at risk.
Under equal hazards, fewer treatment events than expected favor treatment. One time point does not establish a p-value: add differences across event times and scale by their variance.
P-value
The two-sided p-value is the chance, under equal hazards and the test assumptions, of a test statistic at least this extreme. It is not the probability that treatment works.
Hazard ratio estimate
Fit HR = exp(β) from who has each event among patients still at risk.
Illustrative hazard ratio
30% lower instantaneous event rate under proportional hazards. This does not mean 30% longer PFS.
If relative hazards change over time, one HR is a summary.
Ties and confidence intervals
The engine uses Efron's method for tied event times and a 95% interval to describe estimate uncertainty. It does not use Cox HR to decide trial success.
KM and Cox require suitable censoring assumptions. Outcome-related dropout can bias them.
Power
Keep the assumptions fixed. Generate fresh patients and repeat the analysis.
400 successes in 500 trials
Success rule
The adjusted log-rank p-value is below alpha and the difference favors treatment. Holm is the default correction across treatment comparisons.
In event-target mode, unreached trials count as no success in power by the follow-up limit. Conditional power uses trials that reach the target; untestable trials count as no success.
Monte Carlo error and assurance
Holm controls false positives across treatment comparisons. Monte Carlo intervals describe error from a finite number of simulations; they do not measure whether the clinical assumptions are true.
The date range describes variation across trials. With uncertainty in each arm's median enabled, the success rate is predictive assurance under those distributions rather than fixed-effect power.
Methods
Survival: the entered median describes the composite of latent progression or death before scan delay, in the reference-risk group. Weibull shape 1 gives a constant hazard; a shape above 1 gives a rising hazard; a shape below 1 gives a falling hazard. Piecewise mode changes the hazard after a specified time while preserving the entered median.
Progression hazard = (1 − death share) × total hazard
Death hazard = death share × total hazard
The engine draws independent cause-specific progression and death times. Their minimum has the specified latent PFS distribution. Progression is observed at the first attended scan after progression. Death can occur before that scan. The death-share input is a hazard share, not an OS median or the final fraction of observed deaths. This model does not simulate post-progression OS.
Censoring: loss to follow-up has an exponential time distribution based on the entered one-year probability. Without an observed event before cutoff or loss, follow-up ends at the last adequate assessment. Baseline counts as an assessment at time zero. All deaths before loss/cutoff count unless the assessment-gap scenario rule excludes them. There is no treatment-switch or new-therapy rule in this version.
Cutoff: the event-triggered analysis includes all events tied at the target event time. No patient is discarded to force an exact total. The event target can cover all arms or one treatment/control comparison. Enrollment after cutoff is excluded. If the target is not reached within the horizon, the result records that fact. A fixed-date analysis includes the chosen UTC calendar day, capped at the model horizon. A model month is 365.25/12 days.
Analysis: each treatment is compared with control using a log-rank test and a Cox model with Efron ties. Optional stratification uses the simulated risk group. Success requires the chosen adjusted two-sided p-value to be below alpha and the log-rank direction to favor treatment. Cox 95% intervals are pointwise, unadjusted Wald intervals; KM intervals use the log-log Greenwood method. Nonconvergent fits remain NR. RMST is descriptive.
Uncertainty: the 10th–90th ranges describe variation across trials under the entered model. Wilson 95% intervals around simulated proportions describe finite Monte Carlo precision. Optional uncertainty in arm medians changes power into predictive assurance under independent lognormal parameter assumptions. These distributions are user assumptions, not a fitted posterior.
Event-count check: each grid cell reports the fraction of 200 trials whose reported count falls within the chosen tolerance. The grid changes the control median and scales all treatment medians together. Enrollment, death share, scans, and dropout remain fixed. The fractions are not normalized across cells and are not probabilities that a scenario is true.
Review point: revise the affected inputs when an enrollment milestone, protocol/SAP, arm-specific curve, event count with a date, or assessment schedule becomes available. Preserve the prior scenario export. A delayed readout alone does not identify which arm improved.
Methods: FDA NSCLC endpoint guidance, PFS analysis appendices · ICH E9(R1), estimands and sensitivity analysis · R survival: Cox models and ties.