[R] saving only part of a computation in integrate

Mary A. Marion mmstat at comcast.net
Thu Jul 30 21:56:28 CEST 2009


Hello,

I am using
Beta <-integrate(dnorm,mean=0,sd=1,-Inf,2.3552)
 > Beta
0.9907436 with absolute error < 4.2e-06

1-Beta results in an error
How can I store into Beta only .9907436?

Thank you.

Sincerely,
Mary A. Marion




More information about the R-help mailing list