Statalist


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

Re: st: RE: graphs in stata


From   "Friedrich Huebler" <fhuebler@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: graphs in stata
Date   Mon, 13 Oct 2008 11:56:51 -0400

Bastian,

Another option is to specify the individual -kdensity- plots in parentheses.

. sysuse auto
. graph twoway (kdensity mpg if foreign==0) (kdensity mpg if foreign==1)

Friedrich

On Mon, Oct 13, 2008 at 5:46 AM, Martin Weiss <martin.weiss1@gmx.de> wrote:
> sysuse auto, clear
> kdensity price, addplot((kdensity weight))
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Bastian Steingros
> Sent: Monday, October 13, 2008 11:39 AM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: graphs in stata
>
> I want to display the distribution of two different variables in one graph.
> One var. is quite left skewed, the other a bit right skewed.
> I have just tried the command
> kdensity, but it goes for one var. only.
>
> How can I put both in one graph (to display the different distributions)?
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index