Skip to content
Back to formatted view

Raw Message

Message-ID: <457C3B79.3040805@wardle.org>
Date: 2006-12-10T16:53:13Z
From: Mark Wardle
Subject: Show number at risk on Kaplan Meier curve
In-Reply-To: <457C0F18.9060005@vanderbilt.edu>

Frank E Harrell Jr wrote:

> 
> library(Design) # which also requires the Hmisc package
> f <- cph( ..., surv=TRUE)
> survplot(f, ..., n.risk=TRUE)
> 
> ?survplot for details
> 
> 


Thank you for the replies.

Both solutions perfectly - and I've now another package to experiment
with - so I'm very grateful!

My work is looking at natural history rather than the effects of an
intervention, so I'm not too worried about stopping the curves when
there are one or two long-lifers. I think that is a reasonable thing to
do anyway!

Best wishes,

Mark