[R] Calculate the natural log of cdf between 2 intervals

2012-02-02 Thread justin jarvis
Hello all, I was wondering if there is an R function to do the following: [*] log(pnorm(x)-pnorm(y)), where xy. I don't want all the area under the natural log of the normal pdf less than x, I only want the area between y and x. I am aware of the ability to specify log.p=TRUE, which gives me

Re: [R] Calculate the natural log of cdf between 2 intervals

2012-02-02 Thread Petr Savicky
On Thu, Feb 02, 2012 at 01:18:42PM -0800, justin jarvis wrote: Hello all, I was wondering if there is an R function to do the following: [*] log(pnorm(x)-pnorm(y)), where xy. I don't want all the area under the natural log of the normal pdf less than x, I only want the area between y and