Announcement

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

  • How to remove "excludes outside values" from a box plot

    Hi Stata experts;

    I am looking to see how I can remove the text "excludes outside values" in a box plot when I use "noout" option in a box plot. I still want to remove all the outliers from the boxes but whatever I do to remove this text is useless and the text automatically shows up.

    Can you please help me know what command I should use?

    Thanks

  • #2
    Through trial and error experimentation using the first example in the output of help graph box as a starting point, I found that
    Code:
    sysuse bplong
    graph box bp, over(when) over(sex) nooutsides
    displays the unwanted note, but
    Code:
    sysuse bplong
    graph box bp, over(when) over(sex) nooutsides note("")
    suppresses the note.

    Comment


    • #3
      Seems a bad idea to me -- your readers should want to know about the "outliers" you are hiding, and about the fact that you are hiding them, but no doubt you intend to explain that.

      Other way round, people do sometimes ask about box plots showing median and quartiles only, which I suppose is more or less on all fours with showing mean +/- SD, or some such.

      SJ-19-4 gr0081 . Stata tip 133: Box plots that show median and quartiles only
      . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox
      Q4/19 SJ 19(4):1009--1014 (no commands)
      shows how to get box plots that show median and quartiles
      only without elaborate programming


      The Tip arose out of exchanges here on Statalist.

      Comment


      • #4
        The note option worked perfectly, thanks
        I often do not show the outliers when they are far from the 95th percentile value.

        Thanks to both.

        Comment


        • #5
          It's a rare boxplot that shows the 95% percentile, although I think it's a good idea (so long as you show all the data or at an absolute minimum omit data consistently and explain what you have done.

          Comment

          Working...
          X