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 <[email protected]> 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 <[email protected]> wrote:
>> ssc inst byhist
>> sysuse auto
>> byhist mpg
>> mat li r(b)
>>
>> On Mon, Dec 8, 2008 at 12:01 PM, Richard Boylan <[email protected]> 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/