Announcement

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

  • Histogram values

    Is there a way to obtain the calculated values from a histogram?

    I am running:

    histogram avewage if avewage>=7 & avewage<50 [fweight = rearnwt], width(1)

    (The variables avewage and rearnwt are calculated from the CPS)

    I would like to obtain the density (y) values and bin center (x) values that are calculated in the creation of the histogram

  • #2
    Code:
     
    search histogram
    points to

    help twoway__histogram_gen . . . . . . . . . . . . . . Histogram subroutine
    (help twoway__histogram_gen)

    SJ-5-2 gr0014 . . . . . . . Stata tip 20: Generating histogram bin variables
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . D. A. Harrison
    Q2/05 SJ 5(2):280--281 (no commands)
    tip illustrating the use of twoway__histogram_gen for
    creation of complex histograms and other graphs or tables

    I recommend going first to http://www.stata-journal.com/sjpdf.h...iclenum=gr0014

    Comment


    • #3
      That worked, Thanks

      Comment

      Working...
      X