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

st: AW: Overlaying Kernel density plots

From   "Martin Weiss" <>
To   <>
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


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Weichle, Thomas
Gesendet: Dienstag, 4. August 2009 21:56
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 

*   For searches and help try:

*   For searches and help try:

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