Bookmark and Share

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

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

st: RE: Plot PDF and CDF

From   Nick Cox <>
To   "''" <>
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

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.



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

*   For searches and help try:

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