Skip to content
Prev 279420 / 398506 Next

Problem in while loop

If you run

out<- epiann(f = function(a,b) log(dnorm(a)*dnorm(b))), N = 10)

It takes less than 0.5 seconds so there's no problem I can see:
perhaps you want to look elsewhere to get better speed (like Rcpp or
general vectorization), or maybe your loglikihood is not what's
desired, but there's no problem with the loop.

Michael

On Mon, Dec 5, 2011 at 5:29 PM, Gyanendra Pokharel
<gyanendra.pokharel at gmail.com> wrote: