[R] infinity in integrate function in R

eloi_kpamegan@hgsi.com eloi_kpamegan at hgsi.com
Tue Nov 7 22:12:39 CET 2000

sorry the integration was from -Inf to 1.96
The integrate function in R is not taking Inf (infinity). How do you use
infinity in R. I was doing: integrate(dnorm,- Inf, 1.96) and I was getting
Error: NA/NaN/Inf in foreign function call (arg 2). Obviously this should
be equal to pnorm(1.96)= 0.9750021. How do you get around the infinity
problem in R?

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list