Statalist


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

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


From   Sam Norton <samjnorton@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Risk tables under the K-M survival curve
Date   Mon, 14 Sep 2009 13:30:47 +0100

sorry seems to have wrapped, try

*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

2009/9/14 Sam Norton <samjnorton@googlemail.com>:
> 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 <fran.baker@newcastle.edu.au>:
>> 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
> samjnorton@gmail.com
> Research Student
> Centre for Lifespan & Chronic Illness Research
> University of Hertfordshire
>



--
Sam Norton
samjnorton@gmail.com
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/



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