Statalist


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

Re: st: graphing two normal curves


From   "Elizabeth Allred" <lizard@hsph.harvard.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: graphing two normal curves
Date   Tue, 21 Oct 2008 09:56:49 -0400

Thanks Maarten. I did add one "close-paren" in the first range and got exactly what I want.

twoway function y=normden(x,0,1), range(-3 3) || ///
       function y=normden(x,0.3,1), range(-3 3)


I didn't understand that a range needs to be applied to each curve. Now I do. Thanks again!

Elizabeth

>>> On 10/21/2008 at 9:27 AM, in message
<687084.6397.qm@web25004.mail.ukl.yahoo.com>, Maarten buis
<maartenbuis@yahoo.co.uk> wrote:
> --- Elizabeth Allred <lizard@hsph.harvard.edu> wrote:
> 
>> I'm trying to draw two normal curves with this command.
>> 
>> twoway function y=normden(x,0,1) || function y=normden(x,0.3,1),
>> range(-3 3)
>> 
>> What I get is the complete second curve (with mean 0.3) and a small
>> bit of the first--just the piece from x=0 to about x=1. Why am I not
>> seeing both curves?
> 
> twoway function y=normden(x,0,1), range(-3 3 || ///
>        function y=normden(x,0.3,1), range(-3 3)
> 
> Hope this helps,
> Maarten
> 
> -----------------------------------------
> Maarten L. Buis
> Department of Social Research Methodology
> Vrije Universiteit Amsterdam
> Boelelaan 1081
> 1081 HV Amsterdam
> The Netherlands
> 
> visiting address:
> Buitenveldertselaan 3 (Metropolitan), room N515
> 
> +31 20 5986715
> 
> http://home.fsw.vu.nl/m.buis/ 
> -----------------------------------------
> 
> 
>       
> *
> *   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