Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Risk tables under the K-M survival curve


From   Fran Baker <[email protected]>
To   [email protected]
Subject   st: Risk tables under the K-M survival curve
Date   Mon, 14 Sep 2009 15:35:35 +1000

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/



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