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

st: RE: RE: yscale/range to plot

From   Nita Forouhi <>
To   "''" <>
Subject   st: RE: RE: yscale/range to plot
Date   Mon, 7 Mar 2005 13:01:24 -0000

Many thanks, Nick - that works very well.

yes, the K-M curves were all above 0.8

PS - no one has yet replied to my age-adjust or age-standardise query for
incidence rates. I am sorry i posted the question twice - it was because i
was presenting it in two different ways, to explain it better the second
If you or anyone else has an idea of how to do that, i would be very
grateful. I have been stuck with that query for a little while now. If
anyone wants the query re-sent pls let me know, and i can send it to just
the one person, rather than whole group.

Many thanks


-----Original Message-----
From: Nick Cox []
Sent: 07 March 2005 12:46
Subject: st: RE: yscale/range to plot

Sometimes you have to force the labels 
as well. That is, -ysc()- is perhaps being ignored
because the default axis labelling contradicts 

So try adding 


to your command. 

Presumably your Kaplan-Meier curves are all above 0.8. 


Nita Forouhi
> 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)

*   For searches and help try:
*   For searches and help try:

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