Description Usage Arguments Details References
Function simulateSMM
simulates states,
disturbances or missing observations of the Gaussian
state space object conditionally on the data.
1 2 3 | simulateSSM(object,
sim = c("states", "disturbances", "observations"),
nsim = 1, antithetics = FALSE, conditional = TRUE)
|
object |
Gaussian state space object. |
sim |
What to simulate. Note that all the simulations are done independently. |
nsim |
Number of independent samples. Default is 1. |
antithetics |
Use antithetic variables in simulation. Default is FALSE. |
conditional |
Simulations are conditional to data.
If FALSE, the initial state α[1] is
set to alphahat[1] computed by
|
Simulation smoother algorithm is from article by J. Durbin and S.J. Koopman (2002).
Function can use two antithetic variables, one for location and other for scale, so output contains four blocks of simulated values which correlate which each other (ith block correlates negatively with (i+1)th block, and positively with (i+2)th block etc.).
Durbin J. and Koopman, S.J. (2002). A simple and efficient simulation smoother for state space time series analysis, Biometrika, Volume 89, Issue 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.