Statalist


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

st: AW: Overlaying Kernel density plots


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]] Im Auftrag von Weichle, Thomas
Gesendet: Dienstag, 4. August 2009 21:56
An: [email protected]
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
[email protected] 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index