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...