search for: a6750170

Displaying 1 result from an estimated 1 matches for "a6750170".

Did you mean: a0f50170
2006 Oct 11
1
Using integrate() with vectors as boundaries rather than scalars
Hi all my apologies if above title is misleading, but here is my problem anyways: I need to evaluate an integral n times. Since I can't get my head around vectorization as of yet, I have coded it up in a loop, i.e.: for (i in 1:n) { z[i] <- integrate(dnorm,x[i],Inf) } Since n is quite large in my operation, ~40000, I would rather stack all the elements of x into a vector and