Statalist


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

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


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: overlaying two histograms (or distribution curves)
Date   Fri, 20 Nov 2009 07:09:20 -0800 (PST)

--- On Fri, 20/11/09, Ariel Linden, DrPH wrote:
> Is there a way to overlay one histogram (or just the
> density curve)over another so that they align accordingly 

*------------- begin example ---------------
sysuse auto, clear
twoway kdensity price if foreign ==0 || ///
       kdensity price if foreign == 1
*-------------- end example ----------------

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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