| get_min_sample_size | R Documentation |
get_min_sample_size: Heuristic starting-n for binary/continuous/survival prediction
get_min_sample_size(
npar,
prevalence = NULL,
c_stat = NULL,
calibration_slope = NULL,
epv_value = NULL,
outcome_type = c("binary", "survival", "continuous")
)
npar |
Integer; number of predictors in the model. |
prevalence |
Numeric in |
c_stat |
Numeric in (0.5, 1]; anticipated discrimination (C-statistic). Lower values inflate the heuristic. |
calibration_slope |
Numeric; anticipated calibration slope. Values below 1 trigger a modest inflation. |
epv_value |
Numeric; target events-per-variable (EPV) value applied when prevalence is supplied. |
outcome_type |
Character string; must be one of |
Integer recommended starting value from which to calculate the minimum sample size.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.