Statalist


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

Re: st: histogram, read axes


From   "Austin Nichols" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: histogram, read axes
Date   Mon, 8 Dec 2008 12:41:04 -0500

How about this?

cap ssc inst byhist
sysuse auto
egen g=group(for rep78), label
byhist mpg, by(g) tw(scheme(s2mono) leg(col(1)))
mat li r(b)
la li g

On Mon, Dec 8, 2008 at 12:21 PM, Richard Boylan <rtboylan@gmail.com> wrote:
> Thanks. That does exactly what I asked for, but the command "byhist"
> does not allow two options that I was using.
>
> First, I was using the option "by(var1 var2)" and byhist seem to only
> allow "by(var1)."
>
> Second, I was using the option "scheme(s2mono)" which byhist does not allow.
>
> On Mon, Dec 8, 2008 at 11:06 AM, Austin Nichols <austinnichols@gmail.com> wrote:
>> ssc inst byhist
>> sysuse auto
>> byhist mpg
>> mat li r(b)
>>
>> On Mon, Dec 8, 2008 at 12:01 PM, Richard Boylan <rtboylan@gmail.com> wrote:
>>> I was wondering if there are any easy way to read the histogram that
>>> state created.
>>>
>>> Specially, I would to know exactly what bins were created and how many
>>> observations are in each bin.
>>>
>>> After drawing the histogram, I thought I would be able to see this
>>> information using some "return" type of command,
>>> but clearly that does not seem to be the case. I looked at the manual
>>> but did not see any such commands either.
*
*   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