## S4 method for signature 'pfilterd_pomp'filter_traj(object, vars,..., format = c("array","data.frame"))## S4 method for signature 'listie'filter_traj(object, vars,..., format = c("array","data.frame"))## S4 method for signature 'pmcmcd_pomp'filter_traj(object, vars,...)
where Xk is the latent state process and Yk is the observable process at time tk, and n is the number of observations.
To draw samples from this distribution, one can run a number of independent particle filter (pfilter) operations, sampling the full trajectory of one randomly-drawn particle from each one. One should view these as weighted samples from the smoothing distribution, where the weights are the likelihoods returned by each of the pfilter computations.
One accomplishes this by setting filter.traj = TRUE in each pfilter computation and extracting the trajectory using the filter_traj command.
In particle MCMC (pmcmc), the tracking of an individual trajectory is performed automatically.
See Also
More on sequential Monte Carlo methods: bsmc2(), cond_logLik(), eff_sample_size(), filter_mean(), kalman, mif2(), pfilter(), pmcmc(), pred_mean(), pred_var(), saved_states(), wpfilter()