I have been asked to test the difference between two lines on a KM graph
at 5, 10, and 15 year points. I had originally intended to use -sts
test- but there isn't the option -at(5 10 15)- like there is with -sts
list- (but the option -test- isn't allowed when the -at- option is used)
and I prefer to not create new variables for 5, 10, 15 year endpoints.
I am at a loss how to do this. Ideally, I want a single graph with the
test coefficient at each 5 year point. (I am using version 8)
Here are my -stset- and -stcox- statements:
stset datelr, id(patkey) failure(death_yn) origin(dxdate) scale(365.25)
stcox type agedxfr race sex, nolog
sts list, by(type) adjustfor(agedxfr race sex) compare at(5 10 15)
I have considered using different -exit- options with -stset- but I
don't think you can specify an exit of 5 years post-entrance. Correct
me if I am wrong.
*
* 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/