Statalist


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

Re: st: obtaining the frequencies used in histogram


From   David Merriman <dmerrim@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <n.j.cox@durham.ac.uk> 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
> n.j.cox@durham.ac.uk
>
> 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 <dmerrim@gmail.com>
> 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
dmerrim@gmail.com

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index