Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Changing Y axis on KM Survival Graphs

From (Jeff Pitblado, Stata Corp.)
Subject   Re: st: Changing Y axis on KM Survival Graphs
Date   Mon, 08 Sep 2003 09:58:24 -0500

Fultz, Shawn <> 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
	. 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:

© Copyright 1996–2022 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index