-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTables for manuscript.Rmd
More file actions
62 lines (45 loc) · 2.25 KB
/
Copy pathTables for manuscript.Rmd
File metadata and controls
62 lines (45 loc) · 2.25 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
---
title: "Manuscript Tables"
output: html_notebook
---
```{r}
library(mde)
library(gt)
library(gtExtras)
library(tidyverse)
```
```{r}
missing_MCL <- na_summary(MCL_final_datasets)
missing_MCL <- rename(missing_MCL, "Percent Complete" = percent_complete)
missing_MCL <-rename(missing_MCL, "Percent Missing" = percent_missing)
missing_MCL <-rename(missing_MCL, "Feature" = variable)
missing_MCL <-rename(missing_MCL, "Complete" = complete)
missing_MCL <-rename(missing_MCL, "Missing" = missing)
mcl_missing <- missing_MCL %>%
gt() %>%
tab_header(title = "Missingness Among Full Dataset Features") %>%
fmt_number(columns=c("Percent Complete", "Percent Missing"),
decimals = 2)
```
```{r}
final_metrics %>%
gt() %>%
tab_header(title="Table 2: Performance Metrics of Prognostic MCL Models") %>%
fmt_number(columns=4:12) %>%
gt_hulk_col_numeric(c("AUC Train", "AUC Test","Accuracy","Sensitivity", "Specificity", "PPV", "F1", "NPV", "PLR")) %>%
tab_source_note(source_note = "AUC = area under the reciever operating characteristic curve") %>%
tab_source_note(source_note ="PPV = positive predictive value, NPV = negative predictive value") %>%
tab_source_note(source_note ="PLR = positive likelihood ratio, F1=F1 score") %>%
tab_source_note(source_note = "cyto=cytogenetic, ngs=next generation sequencing") %>%
tab_source_note(source_note = "GLM = generalized linear model - a multivariate logistic model") %>%
tab_footnote(footnote = "MIPI = mantle cell lymphoma international prognostic index. Constructed from LDH/ULN, age at diagnosis, and ECOG performance status", locations = cells_body(columns=c("Model"), 8), placement="right") %>%
tab_footnote(footnote = "MIPIb = Biological MIPI - adds Ki67%, a proliferation index", locations = cells_body(columns=c("Model"), 9), placement="right") %>%
tab_footnote(footnote = "A concordance index (C) is used instead of AUC for proportional hazards (PH) models", locations = cells_body(columns=c("AUC Test"), 10:11), placement="right")
```
#Supplementary table 3 - model hyperparameters
```{r}
na.omit(hyperparam) %>%
gt() %>%
tab_header(title = "Supplementary Table 3: Hyperparameters for XGBoost Models") %>%
fmt_number(columns=2:8, decimals=6, drop_trailing_zeros=TRUE)
```