[R] (no subject)

Linda Lei llei at bccrc.ca
Fri May 19 01:35:29 CEST 2006


Hi All,

 

I use the stepAIC to select the variables of Cox ph model. But I got one
error as the following:

 

Start:  AIC= 239.32 

 Surv(SURVP, STATP) ~ AGEBMT_med + SEX + DXCODE + STAGEGRP + BSYMDX +  

    BMINVDX + PS + IPIGROUP + INITXGRP + INICHEMO + PRICHEMO +  

    PRIRESP + DXBMTMON + CON1_3 

 

Error in dropterm.default(fit, scope$drop, scale = scale, trace = max(0,
: 

        number of rows in use has changed: remove missing values?

 

 

Could you please help me with it?

 

Here is my code:

 

> whole<-read.table("E://my file/BC project/Project II/UVA and
MVA/whole.txt",header=TRUE,sep="\t")

 

>
full1<-coxph(Surv(SURVP,STATP)~AGEBMT_med+SEX+DXCODE+STAGEGRP+BSYMDX+BMI
NVDX+PS+IPIGROUP+INITXGRP+INICHEMO+PRICHEMO+PRIRESP+DXBMTMON+CON1_3,data
=whole)

> full<-stepAIC(full1)

> full

 

Thank you!

 

P.S.: The attached is the data.

 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: whole.txt
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060518/c74f2d0f/attachment-0003.txt 


More information about the R-help mailing list