Announcement

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

  • Aggregated data for box plot

    Hi
    I am drawing a box plot.
    However, what I only have would be aggregated data.
    Mean SD Median Q1 Q3
    Group 1 95.0 37.0 98.0 40.0 145

    Then how can I use the graph box command to draw Box and whisker using aggregated data?
    Thanks.

  • #2
    https://www.stata-journal.com/articl...article=gr0081 discusses this problem.

    With that information, you can draw boxes but nothing else.

    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input float(var1 var2 var3)
    25 1 1
    50 1 2
    75 1 3
    25 2 3
    50 2 4
    75 2 5
    end
    
    graph box var3, over(var2)

    Comment

    Working...
    X