【发布时间】:2021-06-02 21:29:39
【问题描述】:
数据
library(survival)
kidney
型号
model = survreg(Surv(time, censored) ~ sex + age, data = kidney)
Call:
survreg(formula = Surv(time, censored) ~ sex + age, data = kidney)
Coefficients:
(Intercept) sexfemale age
8.44411429 -0.89481679 -0.02170266
Scale= 1.653512
Loglik(model)= -122.1 Loglik(intercept only)= -122.7
Chisq= 1.21 on 2 degrees of freedom, p= 0.547
n= 76
我如何预测两个性别在多个时间点(例如 30、90、182 天)的存活率(加上 95% CI)?
在不同的尺度上(例如原始时间尺度、概率)有什么技巧吗?
示例代码或示例将不胜感激。
【问题讨论】:
-
这个 Stack Exchange 答案可能会有所帮助:stats.stackexchange.com/a/159146
标签: r survival-analysis survival weibull