Dear Deepa,
your different graphs are not surprising, since they are based on different
models or functions related to survival analysis.
The following code only allow you to plot KM curves (please, see -help sts-
from within Stata):
1. sts graph, by( age_cat) adjustfor (age_cat gender).
For further details on this topic, I will recommend you to take a look at:
Cleves MA, Gould WG, Gutierrez R. An Introduction To Survival Analysis Using
Stata. Revised edition. College Station: StataPress, 2004;
[ST] Stata manual. Survival analysis and epidemiological table. Release 9
Two other relevant contributors of the Statalist - Maarten Buis
(http://home.fsw.vu.nl/m.buis/) and Stephen Jenkins
(http://www.iser.essex.ac.uk/teaching/degree/stephenj/ec968/index.php.)
published really interesting papers as well as teaching-notes on Survival
Analysis.
HTH and Kind Regards,
Carlo
-----Messaggio originale-----
Da: [email protected]
[mailto:[email protected]] Per conto di Deepa Aggarwal
Inviato: giovedì 3 settembre 2009 18.03
A: [email protected]
Oggetto: st: Adjusted kaplan Meier Curves
Dear all,
I have been asked to plot Kaplan meier curve adjusted for age, gender
etc by three age categories.
When I was searching for a code to plot this type of graph, I found
three different codes.
1. sts graph, by( age_cat) adjustfor (age_cat gender)
2. stcox age_cat sex , basesurv(S)
stcurve, survival at1(age_cat=0) at2(age_cat=1) at3(age_cat=2)
3. akapm _t _d, with( age_cat) by( age_cat)
I tried these three codes, but the graphs look very different from each
other.
What is the difference between these three codes?
Which one is the right code to create Kaplan meier curve adjusted for
covariates?
Thanks for your consideration.
Deepa Aggarwal
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/