Hello,
I have a series of categorical variables. For each one, I would like to create a quick bar graph that displays the count (frequency) of each category, but also the percentage.
For example, if it was an "hbar" graph, it might look something like this:
__________
| 10
__________|(33.3%)
_________________
| 16
_________________|(53.3%)
____
| 4
____|(13.3%)
I intend to use a "foreach" loop to iterate through the list of categorical variables, so I am looking for a solution that can be automated for each variable in my list. I don't mind if the solution uses catplot or hbar or something else.
Any ideas?
Thanks a lot in advance!!
Adam
*
* 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/