Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: how to plot multiple kernal density estimates on a single graph


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: how to plot multiple kernal density estimates on a single graph
Date   Fri, 6 Jan 2012 19:28:22 +0000

. twoway kdensity samp_coeff_A || kdensity samp_coeff_B || kdensity samp_coeff_C

Nick

On Fri, Jan 6, 2012 at 7:00 PM, Steve Martin <stephen.martin@york.ac.uk> wrote:

> I have three variables (samp_coeff_A, samp_coeff_B, samp_coeff_C) and I draw
> three histograms each overlaid with a kernel density plot:
>
> histogram samp_coeff_A, frequency bin(20) kdensity
> histogram samp_coeff_B, frequency bin(20) kdensity
> histogram samp_coeff_C, frequency bin(20) kdensity
>
> I would like to draw a fourth graph containing only the three kernel density
> plots.  Is this possible?

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index