Statalist


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

Re: st: RE: graphs in stata


From   "Friedrich Huebler" <[email protected]>
To   [email protected]
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 <[email protected]> wrote:
> sysuse auto, clear
> kdensity price, addplot((kdensity weight))
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Bastian Steingros
> Sent: Monday, October 13, 2008 11:39 AM
> To: [email protected]
> 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index