Re: [R] survreg and predict probability of failure

2014-03-17 Thread Therneau, Terry M., Ph.D.
-- begin included message --- Hi, I am fitting a weibull model as follows my models is s <- Surv(DFBR$Time,DFBR$Censor) wei <- survreg(s~Group+UsefulLife,data = DFBR,dist="weibull") How can i predict the probabilty of failure in next 10 days, for a new data with group =10 and usefuleLife =10

Re: [R] survreg and predict probability of failure

2014-03-14 Thread David Winsemius
Perhaps: G10 <- predict(wei, list(Group =10 , UsefulLife =10), type="response") You should get a single km-type object and will need to extract a time-specific value. (You really _should_ post what you have tried.) -- David Sent from my iPhone Sent from my iPhone > On Mar 14, 2014, at 9:11

Re: [R] survreg and predict probability of failure

2014-03-14 Thread David Winsemius
Perhaps: G10 <- predict(wei, list(Group =10 , UsefulLife =10), type="response") You should get a single km-type object and will need to extract a time-specific value. (You really _should_ post what you have tried.) -- David Sent from my iPhone > On Mar 14, 2014, at 7:11 PM, shilpi harpavat

Re: [R] survreg and predict probability of failure

2014-03-14 Thread David Winsemius
Perhaps: G10 <- predict(wei, list(Group =10 , UsefulLife =10), type="response") You should get a single km-type object and will need to extract a time-specific value. (You really _should_ post what you have tried.) -- David Sent from my iPhone > On Mar 14, 2014, at 7:11 PM, shilpi harpavat

[R] survreg and predict probability of failure

2014-03-14 Thread shilpi harpavat
Hi, I am fitting a weibull model as follows my models is s <- Surv(DFBR$Time,DFBR$Censor) wei <- survreg(s~Group+UsefulLife,data = DFBR,dist="weibull") How can i predict the probabilty of failure in next 10 days, for a new data with group =10 and usefuleLife =100 Thx shilpi