问题描述:

I study competitive risks and use R.

I would like to use the model in Fine and Gray (1999), A proportional hazards model for the subdistribution of a competing risk, JASA, 94:496-509.

I found the cmprsk package.

However, I have an “interval data” configuration with a starting time t0 and an ending time t1 for each interval, t1 being the exit or the right censoring when I am in the last interval for a given entity. Here is an extract of the dataset

entity t0 t1 cov

1 0 3 12

1 3 7 4

1 7 9 1

2 2 3 2

2 3 10 9

3 0 10 11

4 0 1 0

4 1 6 21

4 6 7 12

...

I do not find how to implement that with cmprsk, while it is implemented FOR EXAMPLE in the survival package (Surv(time,time2,…)).

Is it possible to do it with cmprsk or should I go to another package?

I know that there is a Stata package (stcrreg) doing it but I prefer working with R.

Thanks for your time and help.

相关阅读:
Top