Announcement

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

  • Bar graph, stack, over

    Hi I have a question regarding bar graphs

    I would like to stack 6 variables into two different bars (3 variables per bar) and then group them over another variable.
    Is that possible?

  • #2
    Yes, but I guess people who know technique are expecting example data and more detail on what else is involved. Your description is compatible with several set-ups.

    Comment


    • #3
      Hi Nick

      I'm analyzing the care demand of individuals. I have data for two different time points (Hospital & at home). The care demand is grouped into the domains: self-care, respiration and mobility.
      The care demand was measured as: hours of care provided per week and is therefore a numeric value. I would like to stack the mean values of the care Domains (self-care, respiration and mobility) for the two time points separatly.
      And then I'd would like to group them over a categorical variable (age groups of lesion level)

      Example Data:
      Hospital_Self-Care Hospital_Respiration Hospital_Mobility Home_Self-Care Home_Respiration Home_Mobility
      5.21666667 2.38333333 8.61666667 7.28333333 23.5
      4.58333333 5.63333333 7.2 8.16666667 8.08333333 33.6666667
      0.5 0.03333333 0.06666667 0.6
      0.25 18.15 2.41666667 5.45 7.18333333 33.45
      4.41666667 0.33333333 3.31666667 5.83333333 13.9
      2.08333333 0.03333333 0.26666667 0.21666667 2.6
      0.96666667 4.78333333 5.08333333 7.41666667 8.98333333 27.2333333
      0.33333333 0.08333333 0.25 0.25 0.91666667
      0.21666667 0.11666667 0.55 0.16666667 1.05
      1.41666667 0.08333333 1.5
      1.2 5.31666667 1 7.41666667 8.11666667 23.05
      0.05 2.06666667 0.91666667 1.78333333 1.56666667 6.38333333
      Do you need additional information?

      Comment


      • #4
        Thanks for the detail, but that example looks too much like hard work. Please read and act on https://www.statalist.org/forums/help#stata

        Comment

        Working...
        X