[R] calculating probability from the density function
gunter.berton at gene.com
Mon Oct 1 17:33:43 CEST 2012
Forget density(). Smooth the ecdf instead.
?monotone.smooth (in package fda, for monotone smoothing, which may be
?locfit (in package locfit)
... and many many others
On Mon, Oct 1, 2012 at 6:46 AM, Eugene Kanshin <kanshined1 at gmail.com> wrote:
> 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.
> Thanks in advance for your help,
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Genentech Nonclinical Biostatistics
Internal Contact Info:
More information about the R-help