Learn R Programming

pomp (version 3.3)

saved.states: Saved states

Description

Retrieve latent state trajectories from a particle filter calculation.

Usage

# S4 method for pfilterd_pomp
saved.states(object, ...)

# S4 method for pfilterList saved.states(object, ...)

Arguments

object

result of a filtering computation

...

ignored

Value

The saved states are returned in the form of a list, with one element per time-point. Each element consists of a matrix, with one row for each state variable and one column for each particle.

Details

When one calls pfilter with save.states=TRUE, the latent state vector associated with each particle is saved. This can be extracted by calling saved.states on the ‘pfilterd.pomp’ object.

See Also

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