Agreement between heuristic shrinkage factor and optimal shrinkage factors in logistic regression for risk prediction: a simulation study across different sample sizes and settings
ๆ่ฆ
The heuristic shrinkage factor of Van Houwelingen and Le Cessie (๐๐๐ป) is a commonly used closed-form solution to adjust for overfitting in unpenalised logistic regression models for risk prediction. It is also the basis of widely-adopted minimum sample size criteria for developing clinical prediction models. However, current evidence is lacking regarding the bias of ๐๐๐ป compared to the optimal shrinkage factor (๐๐๐๐ก). Here, we examine this issue and also assess the bias of an alternative bootstrap-derived shrinkage factor (๐๐๐๐๐ก).
MethodsWe undertook two simulation studies. The first examined the bias of ๐๐๐ป and ๐๐๐๐๐ก as estimators of ๐๐๐๐ก across a range of different scenarios defined by ๐ถ๐๐๐, the C-statistic of the model developed in a population sized dataset. The second examined the bias of ๐๐๐๐ก when using development sample sizes targeting a shrinkage of 0.9, based on a sample size calculation defined by ๐๐๐ป itself (๐๐๐๐๐๐๐๐๐) or by an adapted simulation-based approach (๐๐ ๐๐).
ResultsFor high C-statistics, ๐๐๐ป overestimated ๐๐๐๐ก, whereas for low C-statistics ๐๐๐ป underestimates ๐๐๐๐ก. For example, across scenarios when 0.8โค๐ถ๐๐๐<0.85, the 95-percentile range in the bias was (0.005,0.387), compared to (โ0.580,โ0.007) across scenarios when 0.6โค๐ถ๐๐๐<0.65. The magnitude of bias increased as ๐ถ๐๐๐ tended to either 0.5 or 1. As sample size increased and ๐๐๐๐กโ1, the magnitude of the bias in either direction reduced. ๐๐๐๐๐ก was less biased than ๐๐๐ป, with a median magnitude of bias across all scenarios of 0.007, compared to 0.032 for ๐๐๐ป. Developing models on datasets of size ๐๐ ๐๐ gave ๐๐๐๐(๐๐๐๐ก) closer to 0.9 (mean magnitude of bias across all scenarios 0.004) than ๐๐๐๐๐๐๐๐๐ (mean magnitude of bias 0.041).
Conclusions๐๐๐ป is often a poor estimator of the optimal global shrinkage factor. If global shrinkage is needed, we recommend using the bootstrap shrinkage estimate. The bootstrap estimate shows minimal bias in most scenarios, though in small samples the variability is large so provides no guarantees to address overfitting in a single dataset. A sample size calculation based on simulation is often preferable over formula dependent on targeting ๐๐๐ป.