Announcement

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

  • Customizing the whiskers for boxplot

    Hi again,

    I would like to customize
    Code:
    hbox
    .

    My current code is:
    graph hbox auto , over(isco, sort(1))
    Instead of the standard whiskers at Q1 and Q3, I would like to change to p10 and p90, respectively.
    How do I do this on Stata?

    Thank you so much in advance.

  • #2
    See for various technique

    https://journals.sagepub.com/doi/pdf...867X1001000112 on statsby

    https://journals.sagepub.com/doi/pdf/10.1177/1536867X0900900309
    https://journals.sagepub.com/doi/pdf...867X1301300214 on box plots


    stripplot from SSC

    Code:
    webuse nlswork
    stripplot ln_wage, over(race) vertical cumul cumprob box(barw(0.15)) boffset(-0.15)  pctile(10)  height(0.3) refline mc(stc1)

    Click image for larger version

Name:	box_pctile.png
Views:	1
Size:	34.6 KB
ID:	1719364

    Comment


    • #3
      Thanks so much, Nick!

      Comment

      Working...
      X