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

Re: st: RE: Graph Mean SD of continuous variable over categorical variable


From   Syed O Masood <[email protected]>
To   [email protected]
Subject   Re: st: RE: Graph Mean SD of continuous variable over categorical variable
Date   Fri, 18 Jun 2004 12:25:12 -0700 (PDT)

Thanks, I appreciate your help. I created the
variables, scatter does not help me however graph
generated by command "serrbar" is something i want. 

serrbar does not allow me to plot it over more then
one categorical variable. 

I have to plot mean blood flow in three age groups at
two different temperatures (26 & 35oC) and for both
males and females. With "graph box" I can specify
catergorical variables by writing "over" but serrbar
does not work same way. Does it mean that I have to
create six different mean sd and use serrbar command
to plot them in one graph. 

Please advice 

Thanks in advance
--- Nick Cox <[email protected]> wrote:
> No need to search. Just work it 
> out step by step: 
> 
> egen mean = mean(cont), by(cat) 
> egen sd = sd(cont), by(cat) 
> gen upper = mean + sd
> gen lower = mean - sd 
> 
> scatter mean cat || rcap upper lower cat 
> 
> or even 
> 
> serrbar mean sd cat 
> 
> Nick 
> [email protected] 
> 
> Syed O Masood
>  
> > I have to graph Mean +/- SD of a continuous
> variable
> > over categorical variable. So far my search has
> not
> > given me a graph option to plot a dot / bar graph
> of
> > mean SD of a continuous varibale over categorical
> > variable.
> 
> *
> *   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/
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
*
*   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