理解与可视化 Kaplan-Meier 曲线

R 中的生存分析

Heidi Seibold

Statistician at LMU Munich

ggsurvplot 函数

library(survminer)

ggsurvplot(fit)
ggsurvplot(
  fit, palette = NULL, linetype = 1, 
  surv.median.line = "none", risk.table = FALSE,
  cumevents = FALSE, cumcensor = FALSE, 
  tables.height = 0.25,
  ...
)
R 中的生存分析

ggsurvplot 函数

ggsurvplot(
  fit = km, 
  palette = "blue", 
  linetype = 1, 
  surv.median.line = "hv", 
  risk.table = TRUE,
  cumevents = TRUE, 
  cumcensor = TRUE,
  tables.height = 0.1
)

R 中的生存分析

survfit 函数

survfit(object)
  • objectformula:Kaplan-Meier 估计
  • object 的其他选项(详见后续章节):
    • coxph
    • survreg
R 中的生存分析

开始练习!

R 中的生存分析

Preparing Video For Download...