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

Re: st: graphing normal density


From   [email protected] (Derek Wagner, StataCorp)
To   [email protected]
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
<[email protected]>
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index