Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: graphing normal density


From   dwagner@stata.com (Derek Wagner, StataCorp)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: graphing normal density
Date   Wed, 18 Feb 2004 16:27:43 -0600

Richard Sherman wrote:


> How can a create a graph of a normal density function in Stata 
> (not a histogram of a random normal variable, nor a normal 
> distribution overlaid on a histogram, but just the normal curve)?

I believe what what you're looking for can be done with the -twoway
function- command.  For example, try the following:

. twoway function y=normden(x), range(-3 3)


Derek Wagner
<dwagner@stata.com>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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