Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: kaplan-meier curves


From   "maartenbuis" <[email protected]>
To   [email protected]
Subject   Re: st: kaplan-meier curves
Date   Wed, 29 Jun 2005 20:56:11 -0000

-help sts- shows that you can also generate a variable containing the 
survivor function. Apparently what you want is one minus the survivor 
function. So generate a variable containing the survivor function (s), 
generate the new variable (1-s) and plot the new variable against 
time. When drawing the graph you have to watch out that the data is 
properly sorted or use the sort option in the command drawing the 
graph. see -help line- Furthermore because a Kaplan Meier curve is a 
step function you might want to look at -help connectstyle-.

Hope this helps,
Maarten


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index