TriaLab Power Studio · Method
Developing a prediction model — continuous outcome (Riley et al.)
Sizes the dataset for developing a linear-regression prediction model to Riley et al.’s four criteria — an expected shrinkage of predictor effects of at most 10%, an optimism in the apparent R² of at most 0.05, the residual standard deviation and the mean prediction each within 10% — and reports which one binds. pmsampsize’s type(c).
Also known as: prediction model, prognostic model, clinical prediction rule, pmsampsize, Riley, shrinkage, overfitting, subjects per predictor, linear regression, TRIPOD.
Maturity
Validated: 15 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 continuous predictor is one, 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 adjusted R² (
r_squared): a number, above 0 and below 1; default 0.5; entered as proportion (0-1) or percent The proportion of the outcome’s variance the model is expected to explain in new data — the adjusted R² of an existing model, or a conservative lower bound. Lower values need more participants. - Anticipated mean outcome (
mean_outcome): a number, above 0; default 100 The mean of the outcome in the target population, on a scale where it is positive — the model’s intercept when predictors are centred. - Anticipated SD of the outcome (
sd_outcome): a number, above 0; default 15 The standard deviation of the outcome in the target population (the null model’s); the residual SD is √(1 − R²) times it. - 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; 0.95 roughly doubles the sample. - Optimism in the apparent 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 R²; 0.05 is Riley’s recommendation. - Residual SD’s multiplicative margin of error (
sd_mmoe), advanced: a number, above 1; default 1.1 How far the 95% interval for the residual standard deviation may reach, as a factor: 1.1 is within 10%, Riley’s recommendation (234 + p participants); 1.2 within 20% (70 + p). - Mean prediction’s multiplicative margin of error (
intercept_mmoe), advanced: a number, above 1; default 1.1 How far the 95% interval for the mean predicted outcome may reach above the mean, as a factor; 1.1 is within 10%. - 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.
Modifiers admitted
dropout: Dropout
Published examples it reproduces (15)
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:1262, Part I | 30 candidate parameters, adjusted R² 0.7, mean 165 and variance 182 => 206 for a shrinkage of 0.9 (§2.3) | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 165; optimism_target = 0.05; predictor_parameters = 30; r_squared = 0.7; sd_mmoe = 1.1; sd_outcome = 13.490738; shrinkage_target = 0.9 | n_shrinkage = 206 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | 30 candidate parameters, adjusted R² 0.7, mean 165 and variance 182 => 181 for an optimism of 0.05 (§2.4) | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 165; optimism_target = 0.05; predictor_parameters = 30; r_squared = 0.7; sd_mmoe = 1.1; sd_outcome = 13.490738; shrinkage_target = 0.9 | n_optimism = 181 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | 30 candidate parameters, adjusted R² 0.7, mean 165 and variance 182 => 264 for the residual SD within 10% (§3.1) | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 165; optimism_target = 0.05; predictor_parameters = 30; r_squared = 0.7; sd_mmoe = 1.1; sd_outcome = 13.490738; shrinkage_target = 0.9 | n_residual_sd = 264 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | 30 candidate parameters, adjusted R² 0.7, mean 165 and variance 182 => 264 in all, the residual SD binding | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 165; optimism_target = 0.05; predictor_parameters = 30; r_squared = 0.7; sd_mmoe = 1.1; sd_outcome = 13.490738; shrinkage_target = 0.9 | participants = 264 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | 50 candidate parameters, adjusted R² 0.7 => 354 for a shrinkage of 0.9 (the paper prints 355; S_C(354) = 0.90006, and pmsampsize 1.1.3 gives 354) | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 165; optimism_target = 0.05; predictor_parameters = 50; r_squared = 0.7; sd_mmoe = 1.1; sd_outcome = 13.490738; shrinkage_target = 0.9 | n_shrinkage = 355 ± 1 |
| Riley et al. 2019, Stat Med 38:1262, Part I | 25 candidate parameters, adjusted R² 0.7 => 169 for a shrinkage of 0.9 | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 165; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.7; sd_mmoe = 1.1; sd_outcome = 13.490738; shrinkage_target = 0.9 | n_shrinkage = 169 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | 25 candidate parameters, adjusted R² 0.7 => 361 for a shrinkage of 0.95 | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 165; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.7; sd_mmoe = 1.1; sd_outcome = 13.490738; shrinkage_target = 0.95 | n_shrinkage = 361 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | 30 candidate parameters, adjusted R² 0.3 => 421 for an optimism of 0.05 (§2.4) | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 165; optimism_target = 0.05; predictor_parameters = 30; r_squared = 0.3; sd_mmoe = 1.1; sd_outcome = 13.490738; shrinkage_target = 0.9 | n_optimism = 421 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | FEV1 in African-American women: 25 candidate parameters, adjusted R² 0.2, mean 1.90 l, SD 0.6 => 918 for a shrinkage of 0.9 (§4) | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 1.9; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.2; sd_mmoe = 1.1; sd_outcome = 0.6; shrinkage_target = 0.9 | n_shrinkage = 918 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | FEV1 in African-American women: 25 candidate parameters, adjusted R² 0.2, mean 1.90 l, SD 0.6 => 401 for an optimism of 0.05 (§4) | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 1.9; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.2; sd_mmoe = 1.1; sd_outcome = 0.6; shrinkage_target = 0.9 | n_optimism = 401 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | FEV1 in African-American women: 25 candidate parameters, adjusted R² 0.2, mean 1.90 l, SD 0.6 => 259 for the residual SD within 10% (§4) | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 1.9; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.2; sd_mmoe = 1.1; sd_outcome = 0.6; shrinkage_target = 0.9 | n_residual_sd = 259 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | FEV1 in African-American women: 25 candidate parameters, adjusted R² 0.2, mean 1.90 l, SD 0.6 => 918 in all, the shrinkage binding (§4) | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 1.9; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.2; sd_mmoe = 1.1; sd_outcome = 0.6; shrinkage_target = 0.9 | participants = 918 ± 0.5 |
| Riley et al. 2019, Stat Med 38:1262, Part I | The lung-function example at a shrinkage of 0.95 => 1949 | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 1.9; optimism_target = 0.05; predictor_parameters = 25; r_squared = 0.2; sd_mmoe = 1.1; sd_outcome = 0.6; shrinkage_target = 0.95 | n_shrinkage = 1949 ± 0.5 |
| Riley et al. 2020, BMJ 368:m441, Example 3 | Fat-free mass in children: 20 candidate parameters, adjusted R² 0.9, mean 26.7 kg, SD 8.7 => 254 in all, driven by the residual SD (234 + 20) | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 26.7; optimism_target = 0.05; predictor_parameters = 20; r_squared = 0.9; sd_mmoe = 1.1; sd_outcome = 8.7; shrinkage_target = 0.9 | participants = 254 ± 0.5 |
| Riley et al. 2020, BMJ 368:m441, Example 3 | Fat-free mass in children: 20 candidate parameters, adjusted R² 0.9, mean 26.7 kg, SD 8.7 => 68 for a shrinkage of 0.9 | Precision | alpha = 0.05; half_width_target = 1; intercept_mmoe = 1.1; mean_outcome = 26.7; optimism_target = 0.05; predictor_parameters = 20; r_squared = 0.9; sd_mmoe = 1.1; sd_outcome = 8.7; shrinkage_target = 0.9 | n_shrinkage = 68 ± 0.5 |
Sources
- Riley RD, Snell KIE, Ensor J, et al. Minimum sample size for developing a multivariable prediction model: Part I - Continuous outcomes. Stat Med. 2019;38(7):1262-1275.
- 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 →