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/