TriaLab Power Studio · Method
Developing a prediction model — time-to-event outcome (Riley et al.)
Sizes the dataset for developing a survival prediction model to Riley et al.’s criteria — an expected shrinkage of predictor effects of at most 10%, an optimism in the apparent Nagelkerke R² of at most 0.05, and the outcome risk at a key time point estimated within 0.05 — from the event rate and the mean follow-up, and reports which one binds, with the events and events per parameter. pmsampsize’s type(s).
Also known as: prediction model, prognostic model, survival prediction, events per variable, EPP, pmsampsize, Riley, shrinkage, Cox model, TRIPOD.
Maturity
Validated: 8 published examples from 2 independent publications (Riley et al. 2019; Riley et al. 2020) reproduce on every build (ADR-0001 §58).
What it solves for
- Precision: offered.
- Sample size: not offered — A development sample for a prediction model has no null hypothesis to reject: Riley’s criteria are precisions and shrinkages that fall with the sample size, and the Precision target is where they live (ADR-0001 §35).
- Power: not offered — A development sample for a prediction model has no null hypothesis to reject: Riley’s criteria are precisions and shrinkages that fall with the sample size, and the Precision target is where they live (ADR-0001 §35).
- Detectable effect: not offered — A development sample for a prediction model has no null hypothesis to reject: Riley’s criteria are precisions and shrinkages that fall with the sample size, and the Precision target is where they live (ADR-0001 §35).
- Assurance: not offered — No source on disk states a prior on this design’s effect, so the assurance modifier is not admitted here.
- Duration: not offered — A development or validation sample is counted in participants; there is no calendar axis to solve.
Size axes:
- Participants in the development dataset (
participants), Count
Inputs
Every field as the form shows it, with its help. A field marked advanced sits behind Expert mode.
Common to every method
- Significance level (alpha) (
alpha): a number, above 0 and below 1; default 0.05; typically 0.01 to 0.05 (0.05 in most trials; 0.01 for confirmatory claims); entered as proportion (0-1) or percent The type I error rate. Interpreted as two-sided when testing plain equality and one-sided when a margin frame is active, following the usual convention. - Target power (
power_target): a number, above 0 and below 1; default 0.8; typically 0.8 to 0.9 (0.80 is conventional; 0.90 for definitive trials); entered as proportion (0-1) or percent The chance of a significant result if the assumed effect is real. Used when solving for sample size or detectable effect; ignored when solving for power.
The method’s own
- Candidate predictor parameters (p) (
predictor_parameters): a whole number, at least 1; default 20 Every β term the model might estimate — a categorical predictor with k levels is k − 1, a spline or interaction as many as its terms — for every predictor considered, not only those kept. - Anticipated event rate (per unit time of follow-up) (
event_rate): a number, above 0; default 0.1 Outcome events per person-year (or month) in the target population — the events divided by the total follow-up of an existing cohort. - Anticipated mean follow-up per participant (
mean_follow_up): a number, above 0; default 2 In the same time unit as the rate; the rate times it is the expected events per participant, which sets the ceiling of the Cox–Snell R². - Key time point for the outcome risk (
time_point): a number, above 0; default 2 The time by which the model’s predicted risks matter most; the risk there, 1 − e^{−λt} under an exponential model, is what the margin criterion holds. - Anticipated Cox–Snell R² (adjusted) (
r_squared): a number, above 0 and below 1; default 0.05; entered as proportion (0-1) or percent The model’s expected Cox–Snell R² in new data — an existing model’s adjusted value (from its likelihood ratio, its Royston D, or its C-index through Jinks’ formula, as Riley’s §3 describes), or a conservative lower bound. - Anticipated Nagelkerke R² (adjusted) (
r_squared_nagelkerke): a number, above 0 and below 1; default 0.1; entered as proportion (0-1) or percent The Cox–Snell R² over its ceiling; converted by the ceiling at the rate and follow-up entered. - Shrinkage factor to hold, S (
shrinkage_target): a number, above 0 and below 1; default 0.9; entered as proportion (0-1) or percent The expected shrinkage of the predictor effects on new data; 0.9 is 10% shrinkage, Riley’s recommendation. - Optimism in Nagelkerke’s R² to allow, δ (
optimism_target), advanced: a number, above 0 and below 1; default 0.05; entered as proportion (0-1) or percent The largest difference between the apparent and the adjusted Nagelkerke R²; 0.05 is Riley’s recommendation. - Margin of error of the outcome risk to allow (
margin_target), advanced: a number, above 0 and below 1; default 0.05; entered as proportion (0-1) or percent How far either limit of the 95% interval for the risk at the key time point may sit from it; 0.05 is Riley’s recommendation. - Criteria index target (
half_width_target), advanced: a number, above 0; default 1 The design is sized so that every criterion’s shortfall is within this multiple of its allowance: 1 meets Riley’s recommendations exactly, 0.5 halves every allowance, 2 doubles them. The index reported is the worst criterion’s shortfall over its allowance at the size found.
Sizes entered when another axis is solved for
- Participants in the development dataset (
participants): a whole number, at least 1 Participants in the development dataset. Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Ways to express an input
Anticipated model fit — The model’s expected proportion of variation explained, on either R² scale.
- Cox–Snell R², the form’s default: The scale the formulas use. (fields
r_squared) - Nagelkerke R²: Scaled to the ceiling at these rates. (fields
r_squared_nagelkerke)
Modifiers admitted
dropout: Dropout
Published examples it reproduces (8)
Each is a worked example: the inputs as a user enters them, and the number the source prints, which the engine reproduces within the tolerance on every build (the Validation screen runs them on your machine).
| Source | Example | Solves for | Inputs | Published |
|---|---|---|---|---|
| Riley et al. 2019, Stat Med 38:1276, Part II | Recurrent VTE: 25 candidate parameters, Cox–Snell R² 0.051, 0.065 events per person-year, mean follow-up 2.07 years => 4286 in all, the shrinkage binding (§5.2) | Precision | alpha = 0.05; event_rate = 0.065; half_width_target = 1; margin_target = 0.05; mean_follow_up = 2.07; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.051; shrinkage_target = 0.9; time_point = 2; fit expressed as cox_snell |
participants = 4286 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1276, Part II | Recurrent VTE at 4286 participants: 8872 person-years and about 577 events | Precision | alpha = 0.05; event_rate = 0.065; half_width_target = 1; margin_target = 0.05; mean_follow_up = 2.07; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.051; shrinkage_target = 0.9; time_point = 2; fit expressed as cox_snell |
expected_events = 577 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1276, Part II | Recurrent VTE at 4286 participants: the two-year risk of 0.122 has an interval from 0.113 (§5.2.4) | Precision | alpha = 0.05; event_rate = 0.065; half_width_target = 1; margin_target = 0.05; mean_follow_up = 2.07; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.051; shrinkage_target = 0.9; time_point = 2; fit expressed as cox_snell |
risk_lower = 0.113 ± 0.0005 |
| Riley et al. 2019, Stat Med 38:1276, Part II | Recurrent VTE at 4286 participants: … to 0.131 | Precision | alpha = 0.05; event_rate = 0.065; half_width_target = 1; margin_target = 0.05; mean_follow_up = 2.07; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.051; shrinkage_target = 0.9; time_point = 2; fit expressed as cox_snell |
risk_upper = 0.131 ± 0.0005 |
| Riley et al. 2019, Stat Med 38:1276, Part II | A rate of 0.10 per person-year and a ten-year risk of 0.632: 2366 person-years put both limits of the interval within 0.05 (§4.2; entered as 2366 participants followed a year each) | Precision | alpha = 0.05; event_rate = 0.1; half_width_target = 1; margin_target = 0.05; mean_follow_up = 1; optimism_target = 0.05; predictor_parameters = 10; r_squared = 0.05; shrinkage_target = 0.9; time_point = 10; fit expressed as cox_snell |
n_risk = 2366 ± 0.5 |
| Riley et al. 2020, BMJ 368:m441 | Recurrent VTE with 30 candidate parameters, Cox–Snell R² 0.051, rate 0.065, mean follow-up 2.07, two-year risk => 5143 in all (692 events, 23.1 per parameter) | Precision | alpha = 0.05; event_rate = 0.065; half_width_target = 1; margin_target = 0.05; mean_follow_up = 2.07; optimism_target = 0.05; predictor_parameters = 30; r_squared = 0.051; shrinkage_target = 0.9; time_point = 2; fit expressed as cox_snell |
participants = 5143 ± 0.5 |
| Riley et al. 2020, BMJ 368:m441 | Recurrent VTE with 20 candidate parameters => 3429 | Precision | alpha = 0.05; event_rate = 0.065; half_width_target = 1; margin_target = 0.05; mean_follow_up = 2.07; optimism_target = 0.05; predictor_parameters = 20; r_squared = 0.051; shrinkage_target = 0.9; time_point = 2; fit expressed as cox_snell |
participants = 3429 ± 0.5 |
| Riley et al. 2020, BMJ 368:m441 | Recurrent VTE with 30 candidate parameters at 5143: 23.1 events per parameter | Precision | alpha = 0.05; event_rate = 0.065; half_width_target = 1; margin_target = 0.05; mean_follow_up = 2.07; optimism_target = 0.05; predictor_parameters = 30; r_squared = 0.051; shrinkage_target = 0.9; time_point = 2; fit expressed as cox_snell |
events_per_parameter = 23.1 ± 0.05 |
Sources
- Riley RD, Snell KIE, Ensor J, et al. Minimum sample size for developing a multivariable prediction model: Part II - binary and time-to-event outcomes. Stat Med. 2019;38(7):1276-1296.
- Riley RD, Ensor J, Snell KIE, et al. Calculating the sample size required for developing a clinical prediction model. BMJ. 2020;368:m441.
This page was generated from TriaLab Power Studio 2.0.1's engine, as the method is built, and is published in English only. All methods →