Re: [R] survfit function

2012-06-28 Thread Greg Snow
Try: survfit(Surv(Time, 1-Status)~1) On Wed, Jun 27, 2012 at 5:37 AM, niloo javan wrote: > > > Hello > > In (survfit(Surv(Time,Status)~1)) > > I want to have status=0 as Failure and status=1 as Censore. > > Changing above formula to (survfit(Surv(Time,Status)~0)) doesnot help!! > What should i do

[R] survfit function

2012-06-27 Thread niloo javan
Hello In (survfit(Surv(Time,Status)~1)) I want to have status=0 as Failure and status=1 as Censore. Changing above formula to (survfit(Surv(Time,Status)~0)) doesnot help!! What should i do? Thank You. _ Best Regards Niloofar.Javanrouh MSc Of BioStatisticsĀ  [[alternat

Re: [R] survfit function?

2011-11-07 Thread Terry Therneau
Two thoughts. First, prediction with time dependent covariates is always an issue. If you had unemployment as a month-by-month time-dependent covariate in the first model, then for prediction you will need to provide a month-by-month future unemployment scenario. Doing this is easy in the code, b

[R] survfit function?

2011-11-04 Thread Ying Zhou
Hi, I am working on fitting a proportional hazard model to predict the probability of default for mortgage loans. I have a question regarding survfit function. My historical data set is a pool of loans with monthly observed default status for the next 24 months. The data is left truncated (d

Re: [R] survfit function - event information??

2010-06-22 Thread Terry Therneau
--begin inclusion --- I am trying to extract output information from the survfit function in order to generate a matrix of select output for multiple factors. Specifically, I am interested in extracting the number of events (in the output below: 106, 2, 3). The variable names represented in my fun

Re: [R] survfit function - event information???

2010-06-21 Thread David Winsemius
On Jun 21, 2010, at 6:50 PM, CC wrote: Hi all! I am trying to extract output information from the survfit function in order to generate a matrix of select output for multiple factors. Specifically, I am interested in extracting the number of events (in the output below: 106, 2, 3). The v

[R] survfit function - event information???

2010-06-21 Thread CC
Hi all! I am trying to extract output information from the survfit function in order to generate a matrix of select output for multiple factors. Specifically, I am interested in extracting the number of events (in the output below: 106, 2, 3). The variable names represented in my function (ee) ar