logmeanexp
computes logmeanexp(x, se = FALSE)
log(mean(exp(x)))
computed so as to avoid over- or underflow.
If se = FALSE
, the approximate standard error is returned as well.
se = TRUE
, logmeanexp
uses a jackknife estimate of the variance in $log(x)$.
## generate a bifurcation diagram for the Ricker map
pompExample(ricker)
ll <- replicate(n=5,logLik(pfilter(ricker,Np=1000)))
## an estimate of the log likelihood:
logmeanexp(ll)
## with standard error:
logmeanexp(ll,se=TRUE)
Run the code above in your browser using DataLab