[R] calculating probability from the density function

David Winsemius dwinsemius at comcast.net
Mon Oct 1 18:16:23 CEST 2012


On Oct 1, 2012, at 6:46 AM, Eugene Kanshin wrote:

> Hello,
> I have a data x with normal (or very close to normal) distribution, I can
> plot a density distribution with density(x,...). My question is is there
> any way to calculate an area under this distribution (=probability) for
> particular range of x values, let's say for x from 0 to 2? I was not able
> to find any kind of simple procedure to do this.

? pnorm

-- 

David Winsemius, MD
Alameda, CA, USA




More information about the R-help mailing list