View source: R/project_from_filter.R
project_from_filter | R Documentation |
This function simulates from a Haiti-cholera POMP model into the future starting from filtering distribution at the the last time point available.
project_from_filter(mod, end_states, covarGen = NULL, nsims = 100, seed = 123)
mod |
POMP model that you would like to simulate from. |
end_states |
The starting states from which to simulate. This is designed so that these states are draws from the filtering distribution at time $N$, but they can be any desired state from which to start the simulation. |
covarGen |
function that is used to generate covariates, if the model needs covariates to run rprocess. |
nsims |
Integer number of simulations desired. |
seed |
seed for the random number generator. |
Because we are primarily interested in projecting the number of Cholera cases in the future under various vaccination scenarios, it makes sense to use as much information as possible, as simulating from the start of the time series will ultimately disregard the known truth at the end of the available date. The state of the system at the end of the time series can be accounted for by simulating the filtering distribution:
Xk | Y1 = y1*, \ldots, Yk*
As currently implemented, the efficiency could be greatly improved for projecting models that do not have covariates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.