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

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

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