Cox 模型

R 中的生存分析

Heidi Seibold

Statistician at LMU Munich

为何使用 Cox 模型?

$\rightarrow$ 半参数模型

$\rightarrow$ 分布假设更宽松

R 中的生存分析

比例风险假设

不满足时:

R 中的生存分析

计算 Cox 模型

Cox 模型:

cxmod <- coxph(Surv(time, cens) ~ horTh, 
               data = GBSG2)
coef(cxmod)
horThyes 
-0.3640099 

Weibull 模型:

wbmod <- survreg(Surv(time, cens) ~ horTh, 
                 data = GBSG2)
coef(wbmod)
(Intercept)    horThyes 
  7.6084486   0.3059506
R 中的生存分析

练习计算 Cox 模型

R 中的生存分析

Preparing Video For Download...