[英]Interval censored data: Cox proportional hazard and surival difference in R
there is quite a lot of information (internet and textbooks) on how to do survival analysis in R with the survival
package.有很多关于如何使用survival
包在 R 中进行生存分析的信息(互联网和教科书)。 But I don't find any information on how to do this when you have left censored data.但是,当您离开审查数据时,我没有找到有关如何执行此操作的任何信息。
Problem background:问题背景:
I have a self constructed data set with published survival data.我有一个自建的数据集,其中包含已发布的生存数据。 Usually the event time and the date of the last follow-up (right censoring) is given.通常会给出事件时间和最后一次随访(右删失)的日期。 There is however one study that only states that the event happened before day 360. So I left censored this data.然而,有一项研究仅表明该事件发生在 360 天之前。所以我对这些数据进行了删失。
What I want to do:我想做的事:
I want to analyse the complete data set with left truncation, events, and right truncation.我想分析带有左截断、事件和右截断的完整数据集。 I want to plot the Kaplan-Meier curve by gender and then我想按性别绘制 Kaplan-Meier 曲线,然后
What I need:我需要的:
I am able to create a Surv object with type = interval2
.我能够创建一个type = interval2
的 Surv 对象。 But this does neither allow to calculate survdiff
, nor coxph
of the survival package.但这既不允许计算survdiff
,也不允许计算生存包的coxph
。
The intcox
package was removed from CRAN and I don't find what I search in the icenReg
or interval
packages. intcox
包已从 CRAN 中删除,我在icenReg
或interval
包中找不到我搜索的icenReg
。
Can anyone please give me a hind how to solve my problem or where to find practical information on this?任何人都可以告诉我如何解决我的问题或在哪里可以找到有关此的实用信息? I am already spending days on this one.我已经在这个上花了几天时间。
Many thanks!非常感谢!
You can fit a Cox-PH model with both right and left censoring in icenReg
by using the ic_sp
function.您可以使用ic_sp
函数在icenReg
拟合具有左右icenReg
的 Cox-PH 模型。 You can fit this using the standard Surv
response variable, ie您可以使用标准的Surv
响应变量进行拟合,即
fit <- ic_sp(Surv(L, R, type = 'interval2') ~ treatment, data = myData)
or a little more succinctly with或者更简洁一点
fit <- ic_sp(cbind(L, R) ~ treatment, data = myData)
Log-rank tests are not available in icenReg
, but can be found in the interval
package.对数秩测试在icenReg
中不可用,但可以在interval
包中找到。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.