Announcement

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

  • kernel density with shading area

    I want to draw a shaded area (akin to the NBER vertical bars) in a kdensity command. For example, in the below example I want to draw a shaded area between 200 and 240. Any help appreciated.

    sysuse auto
    kdensity length

  • #2
    Nick Cox wrote an article on how to do such a thing in the Stata Journal. Here is the link: https://www.stata-journal.com/articl...article=gr0067
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment

    Working...
    X