Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: twoway bar


From   ofran almossawi <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index