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]

From |
Jeph Herrin <junk@spandrel.net> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: how to find the integral for a portion of a normal distribution. |

Date |
Tue, 04 May 2010 12:15:29 -0400 |

The total area under any normal curve is always 1, so you just need to count obs: drawnorm x , means(2.02) sds(1.75) n(100000) clear gen byte lessthan1=x<=1 sum lessthan1 The mean value of -lessthan1- is the area under the curve to the left of 1. hth, Jeph Buzz Burhans wrote:

My weak math skills are showing up here -For demonstration purposes, I have generated a set of 100,000 observations with a normal distribution, mean 2.02, SD 1.74 and visualized this data and the portion of observations above 1 with a histogram drawnorm x , means(2.02) sds(1.75) n(100,000) clear hist, xline(1) I also computed the proportion of the observations <=1 from the Z score. What I don't know how to do in Stata is find the integral for theproportions of the distribution above and below 1.How can I determine those two integrals in Stata? ThanksBuzz Burhans, Ph.D.Dairy-Tech Group So. Albany, VT / Twin Falls ID Phone: 802-755-6842 Cell: 208-320-0829 Fax VT: 802-755-6842 Fax ID: 208-735-1289 Email: buzzb3@earthlink.net * * 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/

* * 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/

**Follow-Ups**:**RE: st: how to find the integral for a portion of a normal distribution.***From:*"Buzz Burhans" <buzzb3@earthlink.net>

**References**:**st: how to find the integral for a portion of a normal distribution.***From:*"Buzz Burhans" <buzzb3@earthlink.net>

- Prev by Date:
**RE: st: how to find the integral for a portion of a normal distribution.** - Next by Date:
**st: Negative Binomial: Exposure vs. Offset** - Previous by thread:
**st: AW: how to find the integral for a portion of a normal distribution.** - Next by thread:
**RE: st: how to find the integral for a portion of a normal distribution.** - Index(es):