[R] survreg and predict probability of failure
David Winsemius
dwinsemius at comcast.net
Sat Mar 15 04:01:15 CET 2014
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 PM, shilpi harpavat <tshilpi at hotmail.com> wrote:
>
> 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
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list