Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • bar chart for categorical varibles

    I,m using STATA 12
    I successfully used the catplot command to produce a bar chart that compares the percentage of overweight/obese in males & females using the following:

    catplot gender obese, percent (gender) asyvars recast(bar)

    which yielded the following graph


    however, I couldn't figure a way to show the total. I want the graph to look like the attached graph (with males, females & totals)


    any hints on how to do that?

    Wafa
    Attached Files

  • #2
    kindly find the attached document which compares the graph that I got and the way that I want it to appear
    Attached Files

    Comment

    Working...
    X