Re: [R] stepAIC function

2009-12-04 Thread David Winsemius
On Dec 4, 2009, at 9:29 AM, Ashta wrote: Hi All, I am trying to run the following script but have problem, coxm<- coxph(Surv(sdat$time, sdat$cens)~hd+nawtg+nwwg+ntpg+cy +nseas,data=sdat) coxm<-stepAIC(coxm,~.^2) The error message is Error: could not find function "stepAIC" Perhaps you h

[R] stepAIC function

2009-12-04 Thread Ashta
Hi All, I am trying to run the following script but have problem, coxm<- coxph(Surv(sdat$time, sdat$cens)~hd+nawtg+nwwg+ntpg+cy+nseas,data=sdat) coxm<-stepAIC(coxm,~.^2) The error message is Error: could not find function "stepAIC" I tried to install the package but I could not find it. Where