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: plot population distribution over sample histogram


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: plot population distribution over sample histogram
Date   Thu, 2 Jun 2011 21:07:05 +0100

Some technique

. sysuse auto
(1978 Automobile Data)

. histogram mpg , addplot(function normalden(x,26,10), ra(10 42))

But -qnorm- is a better method in my view.

Nick

On Thu, Jun 2, 2011 at 8:11 PM, jacques detiege <[email protected]> wrote:

> I would like to plot the normal curve for my population (mean=80,
> SD=10) over a histogram for a set of sample scores.
> I have only been able to produce the normal distribution of my sample
> data over the histogram.
> Using Stata, how would I produce a graph of both the normal curve for
> the population and the histogram for the sample data?
*
*   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