Add comparison between sm and non-sm

This commit is contained in:
Jens Sauer 2021-01-22 17:37:34 +01:00
parent 10c5d78367
commit 2f58378a5e

View File

@ -85,6 +85,20 @@ sma_plot_surv_sm <- function() {
ggtheme = theme_bw())
}
sma_plot_surv_sm_nonsm <- function() {
ggsurvplot(survfit(Surv(event_time_asct, event_status) ~ ifelse(
time_at_risk_status == 1, 1, 0), secmal),
data = secmal, xscale = "d_y",
break.time.by = sma_break.time.by,
legend = "none",
xlab = "Years",
palette = "lancet",
ggtheme = theme_bw(),
conf.int = TRUE,
pval = TRUE)
}
#
# Write survival plots to files
#