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: calculate maximum density of normal distribuion
From
Nick Bornschein <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: calculate maximum density of normal distribuion
Date
Fri, 22 Nov 2013 16:00:57 +0100
Hello,
I'm calculating a normal distribution with:
set obs 10000
set seed 2211
gen normal2 = rnormal($mean2, $sd2)
by given mean and sd which I define via global macro.
Is it possible to calculate the maximum density at the mean point?
And more interesting: is it possible to define "xline" until a given
point at the y axis (the maximum density as you can imagine) because I
want to add the mean line with going higher than the maximum density?
Best
-Nick
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/