Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Zuhumnan Dapel <z.g.dapel@dundee.ac.uk> |
To | Statalist <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: Distributional graph |
Date | Tue, 11 Mar 2014 20:37:01 +0000 |
It worked. Thank you all! (Nick, Carlos and Dave) On 11 Mar 2014, at 20:24, Radwin, David <dradwin@rti.org> wrote: > You might be able to use -twoway kdensity- instead, like > > . clear > . set obs 2 > . gen year = 2000+_n > . expand 100 > . gen x =runiform() > . twoway (kdensity x if year==2001) (kdensity x if year==2002) > > David > -- > David Radwin, Senior Research Associate > Education and Workforce Development > RTI International > 2150 Shattuck Ave. Suite 800, Berkeley, CA 94704 > Phone: 510-665-8274 > > www.rti.org/education > > >> -----Original Message----- >> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner- >> statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox >> Sent: Tuesday, March 11, 2014 1:18 PM >> To: statalist@hsphsun2.harvard.edu >> Subject: Re: st: Distributional graph >> >> Use the -generate()- of -kdensity- to generate the density function >> and then fire up your own -line- plot. >> >> Nick >> njcoxstata@gmail.com >> >> >> On 11 March 2014 20:11, Theophilus Dapel <dapelzg82@gmail.com> wrote: >> >>> I have two-year stacked dataset. How do produce kdensity of two > lines, >> one for each year on the same graph? > > * > * 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/ The University of Dundee is a registered Scottish Charity, No: SC015096 * * 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/