PFS simulation: methods

Generate patient event times, apply scan and censoring rules, then estimate PFS and power.

Examples use illustrative values.

  1. 01Event times
  2. 02Scans and censoring
  3. 03Survival analysis
  4. 04Power
01

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.

Exponential survival with a 10-month medianThe probability of no progression or death falls from 100 percent at enrollment to 50 percent at month 10 and 25 percent at month 20, before scan delay.100%50%25%0%01020Months from enrollment50% at 10 months25% at 20 months
Underlying PFS before scan delay. This curve uses a constant hazard.

Median and event times

S(t) = 2−t / mm = median PFS • t = months since enrollment

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.

02

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.

Two patient timelinesPatient A progresses at month 3 and has progression recorded at the month 4 scan. Patient B has no event, has the last adequate scan at month 4, and is lost to follow-up at month 5; their record is censored at month 4.Patient A • progressionProgression: month 3Recorded at scan: month 4Patient B • no event observedCensor at last scan: month 4Lost at month 50246Months from enrollment • scans every 2 months
Censoring ends the observed record. It does not count as progression or death.

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.

03

Kaplan–Meier, log-rank, and Cox

These methods use the same patient records to estimate survival, test differences, and estimate hazard ratios.

Kaplan–Meier / Survival estimate

Kaplan–Meier calculation

  1. 4 mo10 at risk, 2 events.
    1 × (1 − 2/10) = 80%
  2. 6 mo2 patients censored. Survival stays at 80%; 6 patients remain at risk.
  3. 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.

Worked Kaplan–Meier step curveTen patients begin at 100 percent. Two events at month 4 reduce survival to 80 percent. Two censor marks at month 6 leave survival unchanged. One event among six patients at month 8 reduces survival to 66.7 percent.100%80%66.7%50%468Months from enrollment2 censored
MonthAt risk beforeEventsCensored
41020
6802
8610

Kaplan–Meier reference

Log-rank / Hypothesis test

Observed events versus expected events

At one event time, suppose 40 treatment and 60 control patients remain at risk.

40 treatment60 control
5 total events × 40/100 = 2 expected
1 observed − 2 expected = −1

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.

Log-rank reference

Cox / Hazard ratio

Hazard ratio estimate

Fit HR = exp(β) from who has each event among patients still at risk.

0.70

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.

Cox reference

KM and Cox require suitable censoring assumptions. Outcome-related dropout can bias them.

04

Power

Keep the assumptions fixed. Generate fresh patients and repeat the analysis.

400 successes in 500 trials

SuccessNo success
400 / 500 = 80%Illustrative estimated power under fixed assumptions

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.

H(t) = ln(2) × (t / median)^shape
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.