Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: obtaining the frequencies used in histogram


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: obtaining the frequencies used in histogram
Date   Tue, 9 Feb 2010 09:36:48 -0000

See also 

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

Look at the Stata Journal website for .pdf version accessible to all. 

Nick 
[email protected] 

Scott Merryman

Sorry,  I assumed you had saved the graphs.

If have the data you can use  -twoway__histogram_gen-  to obtain the
information:

. clear

. sysuse sp500
(S&P 500)

. twoway__histogram_gen volume, display
(bin=15, start=4103, width=1280.3533)

. return list

scalars:
                  r(N) =  248
                r(bin) =  15
              r(width) =  1280.353333333333
              r(start) =  4103
                r(min) =  4103
                r(max) =  23308.3
               r(area) =  1

macros:
               r(type) : "density"

On Mon, Feb 8, 2010 at 9:33 PM, David Merriman <[email protected]>
wrote:


> I don't know where to find the *.gph file. .Can you tell me how to
> find out what the path would be?

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index