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

st: RE: Superimposed graphs

From   "Nick Cox" <>
To   <>
Subject   st: RE: Superimposed graphs
Date   Mon, 3 Feb 2003 20:19:10 -0000

Rod Hunter
> I would like to compare the normal curves for a number of 
> parameters by 
> having the one graph with the normal curves superimposed.
> Is there a way of doing this in Stata?
> Also, is there a way of graphing normal curves without the 
> histograms 
> (bin doesn't help)?

You are referring to Stata 7, it seems. 

If you have several means and standard deviations, 
you just need to use -range- to set a variable 
with desired range and use the -normden()- function. 


set obs 1001
range x 0 10 
gen n1 = normden(x-5,1)
gen n2 = normden(x-4,0.8)
gen n3 = normden(x-6,1.2)
graph n? x , c(sss) s(iii)

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index