Statalist


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

Re: st: 'twoway' syntax subtlety


From   George Hoffman <ghoffman@mcw.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: 'twoway' syntax subtlety
Date   Wed, 15 Oct 2008 07:36:23 -0500

Thank you eva, martin,, and martin.
I have more learning to do - this is why I love STATA.
George



On 10/15/08 07:28 AM, "Eva Poen" <eva.poen@gmail.com> wrote:

> Well, the 'norm' option simply adds another -twoway- plot to the
> kernel density; if you are using -twoway- anyway, you can call it
> yourself:
> 
> twoway (function y = normden(x,mean,sd))
> 
> I reckon that allowing the 'norm' option in -twoway kdensity- would
> clash with general -twoway- behaviour (options for legends,
> xrange/yrange etc.).
> 
> Eva
> 
> 
> 2008/10/15 George Hoffman <ghoffman@mcw.edu>:
>> I'm trying to overlay two (or more) kdensity plots.
>> 
>> kdensity accepts the 'norm' option
>> twoway kdensity does not - see log below
>> 
>> I thought twoway calls kdensity - but I must have a misunderstanding of
>> stata 10 graphics....
>> 
>> An explanation of principle would be most appreciated.
>> Thank you,
>> George Hoffman
>> 
>> 
>> 
>> This my Stata 10 log:
>> 
>> . two (kdensity rso2c if vmi85==0) (kdensity rso2c if vmi85==1)
>> 
>> . two (kdensity rso2c if vmi85==0,norm) (kdensity rso2c if vmi85==1,norm)
>> option norm not allowed
>> r(198);
>> 
>> . kdensity rso2c if vmi85==0,norm
>> 
>> . two kdensity rso2c if vmi85==0,norm
>> option norm not allowed
>> r(198);
>> 
> =
> *
> *   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/

*
*   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