Public repo containing functions and code used in the development of the 4C Mortality Score
The functions in this repo are for use with ISARIC WHO CCP-UK study.
Data should be prepared, cleaned, and carefully checked as per standard procedures.
Collaboration with consortium members is advised to ensure limitations and vagaries of data are understood.
We are grateful if any bugs or errors can be reported in issues. Many thanks!
We welcome applications for data and material access via our Independent Data And Material Access Committee (https://isaric4c.net).
https://github.com/SurgicalInformatics/cocin_ccp.
- Packages.
- Variable definitions.
- Extreme values in continuous variables.
- Training and test definitions.
- Geographical split definitions
- ggplot templates / extraction functions.
- Table defaults.
- Prognostic scoring.
- Missing data inspection, description and characterisation .
- Basic
mice()
function and approach.
- GAM with complete data.
- GAM with mice data.
purrr
methods for metrics, combining by Rubin's rules.
- Apply variables changes across imputed datasets.
glmnet()
using MICE datasets.- Extract
glmnet
coefficients, combine and scale.
- 4C mortality score function.
- Prognostic index discrimination using mice data.
- Score distribution.
- Calibration.
prognos
function for easy cut-off table generation.- Risk tables generation at specified cut-offs.
- Generate risk scores.
ff_aucroc()
function for applying AUCROC and counts across multiple scores.- Apply
ff_auroc()
to risk scores.
- Variable definition.
- Derivation and validation matrices created.
- XGBoost training.
- Discrimination (AUROC).
- Apply comparison scores in derivation and validation data.
- DCA: fit in derivation and predict in validation (recalibration of comparators).
- DCA: fit and predict in validation data (recalibration of all).
4C mortality score | Mortality (%) |
---|---|
1 | 0.3 |
2 | 0.8 |
3 | 2.3 |
4 | 4.8 |
5 | 7.5 |
6 | 7.8 |
7 | 11.7 |
8 | 14.4 |
9 | 19.2 |
10 | 22.9 |
11 | 26.9 |
12 | 32.9 |
13 | 40.1 |
14 | 44.6 |
15 | 51.6 |
16 | 59.1 |
17 | 66.1 |
18 | 75.8 |
19 | 77.4 |
20 | 82.9 |
21 | 87.5 |