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: Distributional graph


From   Carlos Avellaneda Suárez <[email protected]>
To   [email protected]
Subject   Re: st: Distributional graph
Date   Tue, 11 Mar 2014 15:21:17 -0500

Here is an example:
sysuse auto, clear
rename foreign year
twoway kdensity price if year==0 || kdensity price if year==1, ///
legend(order(1 "Year 0" 2 "Year 1"))

Hope this helps.
Carlos


2014-03-11 15:11 GMT-05:00 Theophilus Dapel <[email protected]>:
> Dear All,
> I have two-year stacked dataset. How do produce kdensity of two lines, one for each year on the same graph?
>
> Thanks,
> Dapel
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index