Statalist


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

Re: st: obtaining the frequencies used in histogram


From   David Merriman <[email protected]>
To   [email protected]
Subject   Re: st: obtaining the frequencies used in histogram
Date   Tue, 9 Feb 2010 07:49:09 -0600

Thanks this is useful too.

On Tue, Feb 9, 2010 at 3:36 AM, Nick Cox <[email protected]> wrote:
> 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/
>



-- 
David Merriman
[email protected]

*
*   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