Announcement

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

  • stacked bar graph with conditions

    I am able to create a bar graph using -graph bar (sum) patients if ccta==1, over(year) by(region)- but instead of having four separate graphs for regions I would like to create a stacked bar graph. I have tried using -graph bar (sum) patients if ccta==1, over(year) by(region) stack- but obtain the same results.

    Thanks for the help

  • #2
    Try:
    Code:
    graph bar (sum) patients if ccta==1, over(region) over(year) asyvars stack

    Comment


    • #3
      Thank you, that worked

      Comment

      Working...
      X