[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Changing Y axis on KM Survival Graphs
Fultz, Shawn <Shawn.Fultz@med.va.gov> 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
. 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.
* For searches and help try: