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, .rw.sd, \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
, the specified random walk SD is used.nvars+npars
x ntimes
matrix of prediction means, where ntimes
is the length of the time series contained in object
.
The rows correspond to states and parameters, in that order.pred.mean
.pred.mean
.## See the vignettes for examples.
Run the code above in your browser using DataLab