Statalist


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

st: AW: Risk tables under the K-M survival curve


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: Risk tables under the K-M survival curve
Date   Mon, 14 Sep 2009 13:50:20 +0200

<> 

Perhaps you can frame your question in terms of the example below so it is
easier for the community to give advice?



*************
webuse drug2b, clear
sts graph, by(drug) risktable
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Fran Baker
Gesendet: Montag, 14. September 2009 07:36
An: [email protected]
Betreff: st: Risk tables under the K-M survival curve

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/


*
*   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