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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: draw overlapping normal densities


From   "Cohen, Elan" <cohened@upmc.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: draw overlapping normal densities
Date   Tue, 13 Jul 2010 15:55:27 -0400

Hi all,

I'd like to draw two overlapping Normal densities based on 2 sets of population means and sds.  For example:

sysuse auto
su price if !foreign , meanonly
local mean0 = r(mean)
local sd0 = r(sd)
su price if foreign , meanonly
local mean1 = r(mean)
local sd1 = r(sd)

This is where I'd like to draw a normal curve based on (mean0, sd0) and another based on (mean1, sd1).  Any help would be appreciated.

Thanks,

- Elan

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index