pfilter(object, ...)
## S3 method for class 'pomp':
pfilter(object, params, Np, tol = 1e-17,
warn = TRUE, max.fail = 0, pred.mean = FALSE, pred.var = FALSE,
filter.mean = FALSE, verbose = FALSE, \dots)
## S3 method for class 'mif':
pfilter(object, params, Np, tol = 1e-17, warn = TRUE,
max.fail = 0, pred.mean = FALSE, pred.var = FALSE,
filter.mean = FALSE, \dots)pomp or inheriting class pomp.npars x Np matrix containing the parameters corresponding to the initial state values in xstart.
This must have a 'rownames' attribute.
It is permissible to supply params as a named numeric vecobject is of class mif, this is by default the same number of particles used in the mif iterations.tol are considered to be "lost".
A filtering failure occurs when, at some time point, all particles are lost.
When all particles are lost, the conditional log likelihood at that time point is set toTRUE, the prediction means are calculated for the state variables and parameters.TRUE, the prediction variances are calculated for the state variables and parameters.TRUE, the filtering means are calculated for the state variables and parameters.TRUE, progress information is reported as pfilter works.object.pred.mean.pred.mean.## See the vignettes for examples.Run the code above in your browser using DataLab