Skip to content
Prev 301380 / 398503 Next

Integrate(dnorm) with different mean and standard deviation help

I might suggest:

integrate(dnorm, lower = -1.96 + 2 , upper = 1.96 + 2, mean = 2, sd = 1)

instead.

Incidentally, (and since I find this treatment of ... somewhat opaque)
I think anonymous first class functions are much easier:

integrate(function(x) dnorm(x, mean = 2, sd = 1), lower = -1.96, upper = 1.96)

and I don't think you're any worse for performance.

Best,
Michael
On Thu, Jul 26, 2012 at 12:06 PM, FJ M <chicagobrownblue at hotmail.com> wrote: