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]

st: RE: Plot PDF and CDF


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Plot PDF and CDF
Date   Wed, 3 Nov 2010 18:44:13 +0000

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.

Nick 
[email protected] 

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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index