Description Usage Arguments Value Examples
This function simulates a time-invariant state space model. That is, the
parameters are constant in time. The state space model is represented by the
transition equation and the measurement equation. Let m
be the
dimension of the state variable, d
be the dimension of the
observations, and n
the number of observations. The transition
equation and the measurement equation are given by
a(t + 1) = d(t) + T(t) a(t) + H(t) η(t)
y(t) = c(t) + Z(t) a(t) + G(t) ε(t),
where η(t) and ε_t are iid N(0, I_m) and iid N(0, I_d), respectively, and α(t) denotes the state variable. The parameters admit the following dimensions:
1 2 3 |
nobs |
The desired number of timepoints. |
modelMats |
A list of the matrices below, likely as output from the
function |
Tt |
A matrix giving the factor of the transition equation. |
Zt |
A matrix giving the factor of the measurement equation. |
HHt |
A matrix giving the variance of the innovations of the transition equation. |
GGt |
A matrix giving the variance of the disturbances of the measurement equation. |
dt |
A matrix giving the intercept of the transition equation. |
ct |
A matrix giving the intercept of the measurement equation. |
A list with the following components:
a
a matrix of the simulated states of dimension m x nsimul
y
a matrix of the simulated observations of dimension d x
nsimul
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.