Re: [R] Survival Curves

2012-04-16 Thread David Winsemius
On Apr 16, 2012, at 1:02 PM, robgriffin247 wrote: actually, maybe I haven't quite solved this - the plot doesn't appear to include the 23 that are still alive at the end. I have tried using a status variable (1 or 0 dependant upon survival as in page 800, roughly, in the R book) ... Call

Re: [R] Survival Curves

2012-04-16 Thread robgriffin247
actually, maybe I haven't quite solved this - the plot doesn't appear to include the 23 that are still alive at the end. I have tried using a status variable (1 or 0 dependant upon survival as in page 800, roughly, in the R book) ... Call: survfit(formula = Surv(ssl$long, ssl$status) ~ ssl$sex)

Re: [R] Survival Curves

2012-04-16 Thread robgriffin247
Hi David thanks for the help, i was just looking back to say I have found my solution (i think) and as you suggested survfit was the way to go. my solution was this: model<-survfit(Surv(a$longevity)~a$sex) plot(model,ylab="proportion alive",xlab="time (days)",col=c("red","blue")) -- View this mes

Re: [R] Survival Curves

2012-04-16 Thread David Winsemius
On Apr 16, 2012, at 10:24 AM, robgriffin247 wrote: Hello I'm trying to make survival curves for some longevity data - 100 males and 100 females, some of which are still living (not dead at the end of survey) I would like to make sex specific survival curves as time on the X axis, proport

[R] Survival Curves

2012-04-16 Thread robgriffin247
Hello I'm trying to make survival curves for some longevity data - 100 males and 100 females, some of which are still living (not dead at the end of survey) I would like to make sex specific survival curves as time on the X axis, proportion alive on the Y, and a line for each sex (two lines) Dat

[R] Survival curves for case control and control

2011-11-21 Thread kende jan
Hi, I want to perform Survival curves for case and control subjects in the propensity score-matched cohort  that accounted for the clustering of matched pairs. How I can do it with R. Thanks for your help, Jan [[alternative HTML version deleted]] __

Re: [R] survival curves for time dependent covariates (was "consultation")

2009-05-13 Thread Heinz Tuechler
At 14:50 12.05.2009, Terry Therneau wrote: *I´m writing to ask you how can I do Survivals Curves using Time-dependent *covariates? Which packages I need to Install?* This is a very difficult problem statistically. That is, there are not many good ideas for what SHOULD be done. Hence, there

Re: [R] survival curves for time dependent covariates (was "consultation")

2009-05-12 Thread Terry Therneau
*I´m writing to ask you how can I do Survivals Curves using Time-dependent *covariates? Which packages I need to Install?* This is a very difficult problem statistically. That is, there are not many good ideas for what SHOULD be done. Hence, there are no packages. Almost everything you find