Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: twoway bar


From   ofran almossawi <ofran.almossawi@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: twoway bar
Date   Wed, 28 Mar 2012 13:29:11 +0100

I have done a two way bar plot but stata keeps stacking the bars and the sd
lines on top of each other instead of laying all four columns side by side.

I have compared the pain scores of two groups of patients post caesarean
section, before and after taking their pain medications. The sm group take
their own pain killers, and the nsm group are given the painkillers by the
midwves.

This is the code that I used:

twoway (bar meanpain group) (rcap  upper_pain lower_pain group) (bar
meanmed group) (rcap  upper_med lower_med group), by(group)

i'm not sure where i'm going wrong with this.

many thanks

Ofran
*
*   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   |   Site index