Statalist


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

st: AW: Overlaying Kernel density plots


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Overlaying Kernel density plots
Date   Tue, 4 Aug 2009 21:58:12 +0200

<> 



*************
sysuse auto, clear
twoway (kdensity price if for) (kdensity price if !for)
*************

Incidentally, -by- would give you separate panels, if it did exist for
-kdensity-...


HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Weichle, Thomas
Gesendet: Dienstag, 4. August 2009 21:56
An: statalist@hsphsun2.harvard.edu
Betreff: st: Overlaying Kernel density plots

Hi Statalisters,
I am trying to produce a kernel density plot by overlaying one
distribution over the other.  However, the kdensity command doesn't
allow the by() statement.  Does anybody have any experience in doing so?

Tom Weichle
Math Statistician
Center for Management of Complex Chronic Care (CMC3)
Hines VA Hospital, Bldg 1, C202
708-202-8387 ext. 24261
Thomas.Weichle@va.gov 

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


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