MANYBARS: Stata module to produce bar graphs of a summary statistic for an outcome y variable at specific values of multiple indicator x variables
Brian Shaw ()
Additional contact information
Brian Shaw: Indiana University
Statistical Software Components from Boston College Department of Economics
Abstract:
manybars generates bar graphs showing a summary statistic for an outcome variable, computed separately at user-specified values of one or more indicator variables. This adds functionality to Stata's native -graph bar- command, which requires a single categorical grouping variable for each - over()- call and cannot draw bars for multiple separate indicator variables in a single graph. manybars accepts one or more numeric indicator variables as x variables ("xvars") and computes the specified statistic (default: mean) of the outcome at a specific value of each indicator (default: 1), displaying the results as a grouped bar graph with legend labels drawn from value or variable labels. The -displayvalues()- option allows the user to specify which value of each xvar defines the subgroup of interest. Optionally, bars can be further grouped by one or more (usually categorical) grouping variables using the -overvars()- option. This produces clustered bar graphs that compare the statistic, at each xvar=displayvalue, across those over-variables.
Language: Stata
Requires: Stata version
Keywords: graphics; bar graph (search for similar items in EconPapers)
Date: 2026-05-06
Note: This module should be installed from within Stata by typing "ssc install manybars". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/m/manybars.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/m/manybars.sthlp help file (text/plain)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459693
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().