[R] Survival Curves

robgriffin247 rg.rforum at hotmail.co.uk
Mon Apr 16 18:08:49 CEST 2012


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 message in context: http://r.789695.n4.nabble.com/Survival-Curves-tp4561685p4562010.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list