## S3 method for class 'pomp':
pfilter(object, params, Np, tol = 1e-17,
max.fail = 0, pred.mean = FALSE, pred.var = FALSE,
filter.mean = FALSE, save.states = FALSE,
save.params = FALSE, seed = NULL,
verbose = getOption("verbose"), ...)
## S3 method for class 'pfilterd.pomp':
pfilter(object, params, Np, tol,
max.fail = 0, pred.mean = FALSE, pred.var = FALSE,
filter.mean = FALSE, save.states = FALSE,
save.params = FALSE, seed = NULL,
verbose = getOption("verbose"), ...)pomp or inheriting class pomp.npars x Np numeric matrix containing the parameters corresponding to the initial state values in xstart.
This must have a tol are considered to be TRUE, 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.save.states=TRUE, the state-vector for each particle at each time is saved in the saved.states slot of the returned pfilterd.pomp object.
seed is an integer, it is passed to set.seed prior to any simulation and is returned as the TRUE, progress information is reported as pfilter works.pfilterd.pomp.
This class inherits from class pomp and contains the following additional slots:
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
These can be accessed using the $ operator as if the returned object were a list.
In addition, logLik returns the log likelihood.
Note that if the argument params is a named vector, then these parameters are included in the params slot of the returned pfilterd.pomp object.
That is coef(pfilter(obj,params=theta))==theta if theta is a named vector of parameters.## See the vignettes for examples.Run the code above in your browser using DataLab