Statalist


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

Re: st: overlaying two histograms (or distribution curves)


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: overlaying two histograms (or distribution curves)
Date   Fri, 20 Nov 2009 09:36:13 -0500

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index