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