Fultz, Shawn <[email protected]> asks about controlling the Y-axis when
plotting Kaplan-Meier survivor functions:
> With Stata's version 7, I was able to limit the range of the Y axis to only
> show the range of the data (Survival from 1 to 0.7 in this case) by adding
> the 'yasis' option. This seems to have been removed from version 8. In the
> manuals I can find a way to make the Y axis cover a larger range, but not a
> smaller one.
>
> Any help?
The Stata 8 equivalent to -yasis- is -ylabel(minmax)-. For example, using the
data from the first example in [ST] sts, the following commands
. clear
. use http://www.stata-press.com/data/r8/stan3
. sts graph, ylabel(minmax)
will produce a KM survivor graph where the Y-axis is restricted to the range
of the plotted Y values.
--Jeff
[email protected]
*
* 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/