ssc inst byhist
sysuse auto, clear
byhist price, by(foreign)
tw kdensity price if foreign||kdensity price if !foreign
On Fri, Nov 20, 2009 at 8:58 AM, Ariel Linden, DrPH
<[email protected]> wrote:
> Hi Listservers,
>
> Is there a way to overlay one histogram (or just the density curve)over
> another so that they align accordingly (as we've all seen on the first day
> of any statistics course)?
>
> If possible please use the auto data: price by (foreign) as an example
*
* 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/