Re-fits a clinical prediction model under several robustness checks, complete-case vs imputed data, outlier exclusion, and subgroup consistency, and compares performance metrics across them.
Arguments
- data
The original (pre-imputation) data frame, containing the same predictors and outcome used in
model.- model
A fitted
triageR_modelobject fromtr_fit().- subgroup_col
Optional character. Name of a categorical column (e.g. "sex") to check subgroup consistency across.
- outlier_sd
Numeric. Number of standard deviations beyond which a numeric predictor value is considered an outlier and excluded in the outlier-robustness check. Defaults to 3.
