Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: RE: Plot PDF and CDF


From   Tobias Friedli <tobias.friedli@access.uzh.ch>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Plot PDF and CDF
Date   Wed, 3 Nov 2010 20:12:28 +0100

Ahh now i get it, sorry...

Perfect, found everything. Thank you very much for your help, appreciate it.


On 03.11.2010, at 20:04, Nick Cox wrote:

> I already told you! I said "you could combine -functions- and -twoway function-". 
> 
> That means: go -help functions- and then look at -density functions- (which in this case includes distribution and quantile functions). 
> 
> Nick 
> n.j.cox@durham.ac.uk 
> 
> Tobias Friedli
> Nick,
> 
> Thanks, 
>> . twoway function normden(x,1,1), ra(-5 5) || function normden(x), ra(-5 5)
> is exactly what i was looking for. 
> One more question, what do i have to type instead of "normden" to receive the cdf?
> Or where can i find all these "abbreviations"?
> 
> On 03.11.2010, at 19:44, Nick Cox wrote:
> 
>> By "table" I guess you mean "graph". 
>> 
>> -zdemo2- is from http://www.ats.ucla.edu/stat/stata/ado/teach/
>> 
>> You could look inside the code for -zdemo2- and modify how Phil Ender did it. 
>> 
>> Alternatively you could combine -functions- and -twoway function- e.g. 
>> 
>> . twoway function normden(x,1,1), ra(-5 5) || function normden(x), ra(-5 5)
>> 
>> You don't make clear how cdf and pdf are to be plotted together when the units are different.
> 
> Hobst
> 
>> I just want to plot a normal distribution, i have mean and sd. If possible i
>> would like to plot two different normal distributions in one table. I want
>> to plot the CDF as well as the PDF for both functions.
>> 
>> i found the -zdemo2- but unfortunately this one doesnt alllow to scale the y
>> axis
> 
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index