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" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: summarizing several analyses in one graph
Date   Thu, 21 Sep 2006 16:06:40 -0500

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index