Bar Chart With Error Bars Stata
Contents |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: st: Adding error bars to bar chart From Nick Cox
Bar Chart With Error Bars Matlab
bar chart Date Tue, 4 Mar 2014 17:25:58 +0000 I don'f think anyone quite recommends that as
Bar Chart With Error Bars Excel
the method of choice, but it is one possibility. Much depends on generally, quite what you want or need to show specifically, whether your SEs are necessarily calculated separately or are
Excel Bar Chart With Error Bars 2010
just SD/sqrt(sample size) and as such can be calculated by some existing command and whether you +/- SE or some confidence interval. Nick njcoxstata@gmail.com On 4 March 2014 16:39, Chris Yang
30 Jun 2003 14:43:13 +0100 Stephen McKay > I'm no expert but isn't > > twoway bar mean xcatvar || rcap upper lower xcatvar y error bars > > most of what you need? Overlaying a bar plot vertical error bars in excel with capped spikes. > Stephen is quite correct. As I pointed out in a previous thread earlier in serrbar stata the month started by Buzz Burhans: > It so happens that Stata's been a bit laggard on producing > wrapper commands for plots showing error bars. > I http://www.stata.com/statalist/archive/2014-03/msg00096.html doubt there's any policy there. > However, having implemented various high- > level commands in one way does inhibit twisting > them in a different direction. -graph bar- > for example is basically built around a -collapse- > of the data. Building something else major on top of > that, such as machinery for adding confidence > http://www.stata.com/statalist/archive/2003-06/msg00631.html intervals generally, would be, I guess, rather tricky. My posting then focused on my criticisms of a certain kind of error bar plot, and Buzz's reply focused on his reaction to that critique. I don't think either of us convinced the other. However, what is said above for -graph bar- does not inhibit building something based on -graph twoway bar-, and you can try your own wrapper command. Here is a "no holds barred" (no bars held?) plot, error bars on top of thicker bars. You have to supply 1. bar height variable 2. upper error bar position variable 3. lower error bar position variable 4. other axis variable *! NJC 1.0.0 30jun2003 program baronbar version 8 syntax varlist(min=4 max=4) [if] [in] [, /// HORizontal VERTical base(str) BARWidth(str) /// BSTYle(str) BColor(str) BFColor(str) /// BLSTYle(str) BLColor(str) BLWidth(str) /// BLPattern(str) plot(str asis) * /// ] tokenize `varlist' args height upper lower groupvar local yttl : var label `height' if `"`yttl'"' == "" local yttl `height' if `"`plot'"' == "" local legend legend(nodraw
Alumni Academic calendar Bookstore Campus announcements Catalog Cooley Art Gallery GPS login Job opportunities Library Moodle login http://www.reed.edu/psychology/stata/graphing/bargraph.html Reed email Directory IRIS Login Stata Help Site Navigation Stata Home Basic Tutorial Command Cheat Sheet Getting Started with Stata Introduction to the Program & Website What You See When Stata Opens A Sample Session Move Your Data into Stata Basic Analyses Parametric Analyses Nonparametric Analyses Advanced Analyses Graphing Histograms error bars Scatterplots/Bivariate Correlations Bar Graphs Tutorials Homework Help Additional Resources Making bar graphs in Stata Bar graphs are a useful way to display means (averages) of datasets. Making bar graphs in Stata may be easiest using the menus. SelectGraphics on the Mac toolbarand click on Bar chart; this will bring up bar chart with a window detailing the bar chart options. To include a variable in your graph, check the box next to a field and select the variable you'd like to chart from the field's drop-down menu. For more on the tabs available to most graphs using the menus, see graph menu tutorial To make multiple graphs according to a grouping variable, use the By tab. If you want a bar graph with error bars, the process is somewhat more complicated. For starters, the UCLA Website UCLA Website offers some good resources. Ultimately however, you may find it easier to do this particular graphing in a different program, such as Excel. Back Contact Reed College 3203 Southeast Woodstock Boulevard Portland, Oregon 97202-8199 Phone: 503/771-1112 Fax: 503/777-7769 Getting to Reed Campus map Important Links About Reed Job opportunities Contact public affairs Contact webmaster Web & copyright policies Follow Reed Facebook Twitter YouTube Instagram