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]

st: draw overlapping normal densities


From   "Cohen, Elan" <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index