-
First of all, thanks for making and maintaining this awesome package! Currently I am trying to build a particle filter of a state-space model, where the observations Thanks for any help in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Good question, @zcaiElvis! You are correct that the standard case that pomp treats is one for which, conditional on The easiest way to do so is to include the data to the pomp object as "userdata", then to write the rmeasure and dmeasure components to make reference to this. This is really easy if you write rmeasure and dmeasure as R functions. It is slightly more complex to write them as C snippets. Consider the following very simple example. Suppose my data consist of cumulative counts and for some reason I do not want to simply take first differences. In particular, for each
The first line in the Now, the correctness of the particle filter does depend on the data not being anticipatory and you could easily get yourself into trouble making the |
Beta Was this translation helpful? Give feedback.
Good question, @zcaiElvis!
You are correct that the standard case that pomp treats is one for which, conditional on$x_i$ , $y_i$ is independent of $y_j$ for all $j\ne{i}$ . However, as you are no doubt aware, the correctness of the particle filter does not depend on this, and it is possible to work around this restriction.
The easiest way to do so is to include the data to the pomp object as "userdata", then to write the rmeasure and dmeasure components to make reference to this. This is really easy if you write rmeasure and dmeasure as R functions. It is slightly more complex to write them as C snippets.
Consider the following very simple example. Suppose my data consist of cumulative cou…