Learn R Programming

pomp (version 3.3)

eff.sample.size: Effective sample size

Description

Estimate the effective sample size of a Monte Carlo computation.

Usage

# S4 method for bsmcd_pomp
eff.sample.size(object, ...)

# S4 method for pfilterd_pomp eff.sample.size(object, ...)

# S4 method for wpfilterd_pomp eff.sample.size(object, ...)

Arguments

object

result of a filtering computation

...

ignored

Details

Effective sample size is computed as $$\left(\sum_i\!w_{it}^2\right)^{-1},$$ where \(w_{it}\) is the normalized weight of particle \(i\) at time \(t\).

See Also

More on particle-filter based methods in pomp: bsmc2(), cond.logLik(), filter.mean(), filter.traj(), kalman, mif2(), pfilter(), pmcmc(), pred.mean(), pred.var(), saved.states(), wpfilter()