-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.R
More file actions
67 lines (44 loc) · 1.93 KB
/
main.R
File metadata and controls
67 lines (44 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
root <- rprojroot::find_root(rprojroot::has_file(".gitignore"))
# create folders if needed
if (!dir.exists(file.path(root, "tables")))
dir.create(file.path(root, "tables"))
if (!dir.exists(file.path(root, "figures")))
dir.create(file.path(root, "figures"))
# generate cohort
source(file.path(root, "scripts", "cohort-gen.R"))
# construct the score
source(file.path(root, "scripts", "construct-score.R"))
# manuscript numbers
source(file.path(root, "scripts", "summary-stats", "manuscript-numbers.R"))
###' * Tables *
# patient table
source(file.path(root, "scripts", "tables", "patient-table.R"))
# score table
source(file.path(root, "scripts", "tables", "score-table.R"))
###' * eTables *
# variables table
source(file.path(root, "scripts", "tables", "variables-table.R"))
# AUROCs and AUPRCs
source(file.path(root, "scripts", "tables", "aucs.R"))
# variable missingness table
source(file.path(root, "scripts", "tables", "missingness-table.R"))
###' * Figures *
# over time performance
source(file.path(root, "scripts", "figures", "over-time.R"))
###' * eFigures *
# comparison of several GCS options
source(file.path(root, "scripts", "figures", "gcs-options.R"))
# comparison of scores when lactate is removed
source(file.path(root, "scripts", "figures", "over-time-add.R"))
# comparison of scores for patients with >= 4 days of antibiotics
source(file.path(root, "scripts", "figures", "over-time-mabx.R"))
# ROC curves across different datasets and systems
source(file.path(root, "scripts", "figures", "roc-grid.R"))
# mortality barplots in each domain
source(file.path(root, "scripts", "figures", "mortality-barplots.R")) # new
# calibration of SOFA, SOFA 2.0
source(file.path(root, "scripts", "figures", "calibration.R")) # new
# impact of feature removal on performance
source(file.path(root, "scripts", "explore", "ablation.R")) # new
### knit supplementary figures to a single file
source(file.path(root, "scripts", "knit-supplement.R")) # new