[R] survival data with competing risks and time-dependent covariates!

2010-03-28 Thread sdzhangping
Dear friends:

  I’m very interested in the analysis of survival data of leukemic patients, 
which involves competing risks and time-dependent covariates (infections or 
relapse of leukemia after BMT). In my present work, I’d like to estimate the 
risk of chemotherapy, BMT or gvhd on the onset and prognosis of invasive fungal 
infections (IFI). In detail, the leukemic patients will receive several cycles 
of chemotherapy and some of them will receive BMT. The patients have three 
outcomes, that’s acquisition of IFI, death free from IFI or IFI free survival. 
My puzzle is: 

(1)Dose multi-state model fit this situation? 

(2)I tried to fit coxphf model:  fit = coxphf(Surv(start,stop,ifi==1)~bmt, 
data=ifi). The system always goes wrong when variable “gvhd” was fitted. 
[coxphf(Surv(start,stop,ifi==1)~bmt+gvhd, data=ifi)]. Is there something wrong 
with my data format?

Thank you!

Ping Zhang

Mar 26 2010

 

simulation dataset of six patients: (with ifi.csv in the attachment)  

  id  start stop ifi chemo  bmt  gvhd  death   

   1 0 7   01  0  0   0 #chemo at d7 and 
died at d30

   1 0 7   01  0  0   0   

   2 0 8   01  0  00#chemo1 at d7, ifi 
at d100, chemo2 at d120 ,bmt at d200 and death at d450

   28 100  1  0   0 00

   2100  120  0  1   0 0   0

   2120  200  0 0   1  00

   2200   450  00   0  01

   30 6   0 1  0  00   #chemo1 at d6, ifi 
at d44, chemo2 at d60, censor at d300

   3644  1 0  0   0   0

   344   60  0 1  0  0   0

   360 300  0  0  0  0   0

   4  0   10  0  1  0  0   0   #chemo1 at d10, 
chemo2 at d60,

   4 10  60   0 1  0  0   0   #bmt at d120, 
censor at d300

   4 60  120  0 0 1  0   0

   4 120 300  00 0  00

   50   91 00   0   0   #ifi at d9, die 
at d30

   59   30  0 0 0   0   0

   6  300 301  0 0 1   0  0  #(left censored) 
bmt at d301, gvhd at d330, ifi at 340, death at 350

   6  301 330  0 0 0   1  0  

   6  330 340  1 0  0  0  0

   6  340 350  0 0 0   0  1

 

 



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] survival data with competing risks and time-dependent covariates!

2010-03-28 Thread Stefan Grosse
Am 28.03.2010 15:08, schrieb sdzhangping:
   I??m very interested in the analysis of survival data of leukemic patients, 
 which involves competing risks and time-dependent covariates (infections or 
 relapse of leukemia after BMT). In my present work, I??d like to estimate the 
 risk of chemotherapy, BMT or gvhd on the onset and prognosis of invasive 
 fungal infections (IFI). In detail, the leukemic patients will receive 
 several cycles of chemotherapy and some of them will receive BMT. The 
 patients have three outcomes, that??s acquisition of IFI, death free from IFI 
 or IFI free survival. My puzzle is: 

 (1)Dose multi-state model fit this situation? 

 (2)I tried to fit coxphf model:  fit = coxphf(Surv(start,stop,ifi==1)~bmt, 
 data=ifi). The system always goes wrong when variable ??gvhd?? was fitted. 
 [coxphf(Surv(start,stop,ifi==1)~bmt+gvhd, data=ifi)]. Is there something 
 wrong with my data format?
 ted, minimal, self-contained, reproducible code.
   

You were posting exactly this question already on Friday twice and then
today twice. You have been pointed out that you might be using the wrong
function. So why should anyone answer you question when you do not show
any effort? You did not even ask back.

Stefan

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] survival data with competing risks and time-dependent covariates!

2010-03-25 Thread sdzhangping
Dear friends:

  I’m very interested in the analysis of survival data of leukemic patients, 
which involves competing risks and time-dependent covariates (infections or 
relapse of leukemia after BMT). In my present work, I’d like to estimate the 
risk of chemotherapy, BMT or gvhd on the onset and prognosis of invasive fungal 
infections (IFI). In detail, the leukemic patients will receive several cycles 
of chemotherapy and some of them will receive BMT. The patients have three 
outcomes, that’s acquisition of IFI, death free from IFI or IFI free survival. 
My puzzle is: 

(1)Dose multi-state model fit this situation? 

(2)I tried to fit coxphf model:  fit = coxphf(Surv(start,stop,ifi==1)~bmt, 
data=ifi). The system always goes wrong when variable “gvhd” was fitted. 
[coxphf(Surv(start,stop,ifi==1)~gvhd, data=ifi)]. Is there something wrong with 
my data format?

Thank you!

Ping Zhang

Mar 26 2010

 

simulation dataset of six patients: 

id

start

stop

ifi

chemo

bmt

gvhd

death

 

1

0

7

0

1

0

0

0

#chemo at d7 and died at d30

1

7

30

2

0

0

0

1

 

2

0

8

0

1

0

0

0

#chemo1 at d7, ifi at d100, chemo2 at 

2

8

100

1

0

0

0

0

# d120, bmt at d200 and die at d450

2

100

120

0

1

0

0

0

 

2

120

200

0

0

1

0

0

 

2

200

450

0

0

0

0

1

 

3

0

6

0

1

0

0

0

#chemo1 at d6, ifi at d44, chemo2 at d60, 

3

6

44

1

0

0

0

0

# censor at d300

3

44

60

0

1

0

0

0

 

3

60

300

0

0

0

0

0

 

4

0

10

0

1

0

0

0

#chemo1 at d10, chemo2 at d60, 

4

10

60

0

1

0

0

0

#bmt at d120, censor at d300

4

60

120

0

0

1

0

0

 

4

120

300

0

0

0

0

0

 

5

0

9

1

0

0

0

0

ifi at d9, die at d30

5

9

30

0

0

0

0

1

 

6

300

301

0

0

1

0

0

#(left censorsed) bmt at d300, gvhd at 

6

301

330

0

0

0

1

0

#330, ifi at d340, die at d350

6

330

340

1

0

0

0

0

 

6

340

350

0

0

0

0

1

 __
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] survival data with competing risks and time-dependent covariates!

2010-03-25 Thread sdzhangping
Dear friends:

  I’m very interested in the analysis of survival data of leukemic patients, 
which involves competing risks and time-dependent covariates (infections or 
relapse of leukemia after BMT). In my present work, I’d like to estimate the 
risk of chemotherapy, BMT or gvhd on the onset and prognosis of invasive fungal 
infections (IFI). In detail, the leukemic patients will receive several cycles 
of chemotherapy and some of them will receive BMT. The patients have three 
outcomes, that’s acquisition of IFI, death free from IFI or IFI free survival. 
My puzzle is: 

(1)Dose multi-state model fit this situation? 

(2)I tried to fit coxphf model:  fit = coxphf(Surv(start,stop,ifi==1)~bmt, 
data=ifi). The system always goes wrong when variable “gvhd” was fitted. 
[coxphf(Surv(start,stop,ifi==1)~gvhd, data=ifi)]. Is there something wrong with 
my data format?

Thank you!

Ping Zhang

Mar 26 2010

 

simulation dataset of six patients: (with ifi.csv in the attachment)  

  id  start stop ifi chemo  bmt  gvhd  death   

   1 0 7   01  0  0   0 #chemo at d7 and 
died at d30

   1 0 7   01  0  0   0   

   2 0 8   01  0  00#chemo1 at d7, ifi 
at d100, chemo2 at d120 ,bmt at d200 and death at d450

   28 100  1  0   0 00

   2100  120  0  1   0 0   0

   2120  200  0 0   1  00

   2200   450  00   0  01

   30 6   0 1  0  00   #chemo1 at d6, ifi 
at d44, chemo2 at d60, censor at d300

   3644  1 0  0   0   0

   344   60  0 1  0  0   0

   360 300  0  0  0  0   0

   4  0   10  0  1  0  0   0   #chemo1 at d10, 
chemo2 at d60,

   4 10  60   0 1  0  0   0   #bmt at d120, 
censor at d300

   4 60  120  0 0 1  0   0

   4 120 300  00 0  00

   50   91 00   0   0   #ifi at d9, die 
at d30

   59   30  0 0 0   0   0

   6  300 301  0 0 1   0  0  #(left censored) 
bmt at d301, gvhd at d330, ifi at 340, death at 350

   6  301 330  0 0 0   1  0  

   6  330 340  1 0  0  0  0

   6  340 350  0 0 0   0  1

 

 __
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.