Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: summarizing several analyses in one graph


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: RE: summarizing several analyses in one graph
Date   Thu, 21 Sep 2006 16:06:40 -0500

> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Michael McCulloch
> Sent: Thursday, September 21, 2006 1:07 AM
> To: Statalist
> Subject: st: summarizing several analyses in one graph


<snip>

> GOAL:
> I wish to display them in the following format:
> Each method of analysis as a capped horizontal line as wide as the
> confidence interval, with effect size as a circle.
> The y-axis labeled with the name of the method, e.g. Cox .

How about something like this:

clear
input str6 method es lci uci
    Cox   .89   .86   .99 
    MSM   1.2   .95   1.5 
 Pscore   .31   .22   .51 
 end
 l
 encode method, gen(meth)
twoway rcap lci uci meth, horizontal msize(huge) /// 
xtitle(Hazard Ratio and 95% Confidence Interval) /// 
ytitle(Analysis Method) /// 
ylabel( 1 "Cox" 2 "MSM" 3 "Pscore" , angle(h)) ///
 || scatter meth es, msize(medlarge)


Scott



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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