Hi Fran
You can specify the text of the row-titles in the risk table using the
the order option.
i.e.
*sts graph
#delimit;
sts graph, by(age75) risktable(0(500)1500, order(1 "Age < 75" 2
"Age >= 75"))
title(" ")
xtitle("Time post angiography (days)")
ytitle("Probability of surviving MI")
legend(label(1 "Age < 75") label(2 "Age >= 75") textfirst cols(1))
scheme(s2mono)
graphregion(fcolor(white))
xline(2040, lstyle(foreground))
yline(1.03, lstyle(foreground))
legend(pos(5) ring(0))
text(0.2 1640 "p-value = 0.755");
#delimit cr
regards
Sam
2009/9/14 Fran Baker <[email protected]>:
> Hi
>
> Can the label in the risk table be changed as I am getting the varname and label on each line from the following code. Just want preferably the label
>
> Thanks
> Fran
>
>
> *sts graph
> #delimit;
> sts graph, by(age75) risktable(0(500)1500)
> title(" ")
> xtitle("Time post angiography (days)")
> ytitle("Probability of surviving MI")
> legend(label(1 "Age < 75") label(2 "Age >= 75") textfirst cols(1))
> scheme(s2mono)
> graphregion(fcolor(white))
> xline(2040, lstyle(foreground))
> yline(1.03, lstyle(foreground))
> legend(pos(5) ring(0))
> text(0.2 1640 "p-value = 0.755");
>
> #delimit cr
>
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
--
Sam Norton
[email protected]
Research Student
Centre for Lifespan & Chronic Illness Research
University of Hertfordshire
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/