Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

Re: st: plot population distribution over sample histogram

From   Nick Cox <>
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.


On Thu, Jun 2, 2011 at 8:11 PM, jacques detiege <> 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:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index