Announcement

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

  • Creating histograms

    I created a dummy variable to accuse a characteristic which is common in 4 groups in my analyses. How can I draw an histogram, one for each group, which accuses the percentage of that characteristic in that group in a certain year (from 1995 to 2015, for example)?

  • #2
    The percent with a characteristic is just the mean of the corresponding indicator, conventionally multiplied by 100. An analogue is

    Code:
    sysuse auto, clear
    graph bar (mean) foreign, over(rep78) yla(0 .25 "25" .5 "50" .75 "75" 1 "100") ytitle(Percent foreign) b1title(Repair record 1978)

    Comment


    • #3
      Thank you!

      Comment

      Working...
      X