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

st: yscale/range to plot


From   Nita Forouhi <nf250@medschl.cam.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: yscale/range to plot
Date   Mon, 7 Mar 2005 12:20:20 -0000

Would anyone know how to re-set the y axis on a Kaplan Meir curve, so the
survival probability starts at say 0.8 instead of at 0?

I tried the command (below) but nothing visibly happened that was different
- ie the graph for sts graph, by(xvar) looked the same, ie started at 0 for
y axis, as when i tried the yscale and range commands as below

sts graph, by(xvar) ysc(r(0.8 1.0))

(and when i tried it in a standard y vs x twoway scatter graph, nothing
happened to the y-scale either - eg
twoway scatter y x, ysc(r(15 50)) where y might be something like BMI say,
and I only wanted to plot BMI on y axis from 15 to 50 say)

Most grateful for any pointers on re-setting the scale/range to plot.

Nita
Cambridge
*
*   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/



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