Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Drawing two superimposing graph with confidence intervals


From   "George M Hoffman MD" <[email protected]>
To   <[email protected]>
Subject   st: Re: Drawing two superimposing graph with confidence intervals
Date   Thu, 3 Mar 2005 12:54:09 -0600

assuming agey is integer, and that there are not too discrete values, you 
could
.gen agey2 = agey+0.5
and then use agey as the X variable for SSma, and agey2 as the X variable 
for SSfe

if you vary the offset for age2, you change the spacing between sets of 
data.
?maybe

george hoffman


----- Original Message ----- 
From: "Raphael Fraser" <[email protected]>
To: "Statalist" <[email protected]>
Sent: Thursday, March 03, 2005 11:27 AM
Subject: st: Drawing two superimposing graph with confidence intervals


Dear All,

I drew two graphs using twoway rcap. However, the
confidence intervals overlap and looks confusing. Is
there a way to shift the confidence intervals so the
graph looks more readable? Unfortunately, the jitter
option does not work with rcap. Here is a snippet of
my code:

#delimit ;
tw (rcap SSma_lb SSma_ub agey) (connected SSma_m agey)
   (rcap SSfe_lb SSfe_ub agey) (connected SSfe_m agey)
#delimit ;



Raphael A. Fraser, M.Sc.
Assistant Lecturer in Medical Statistics
Tropical Medicine Research Institute
University of the West Indies
Mona, Kingston
Jamaica

Contact
(876) 927-2471
(876) 410-4699

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
*
*   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/ 

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