Description Usage Arguments Value Note Examples
View source: R/component_samplers.R
Sample the dynamic factors (latent state space variables) using the simulation smoothing algorithm of Koopman and Durbin (2001), implemented in the KFAS package.
1 2 |
Y |
the |
sigma_et |
|
Wt |
|
Fmat |
|
YF |
|
Gt |
|
W0 |
|
kfas_model |
|
useFastImpute |
logical; when TRUE, use imputation/projection scheme for the dynamic factors; otherwise use full state space model for factors (slower) |
The T x K
matrix of dynamic factors, Beta
.
The sampler has two options: useFastImpute = TRUE
, in which the response is
YF = Y%*%Fmat
(T x K
) and the observation matrix is the identity (K x K
);
and useFastImpute = FALSE
, in which the response is Y
(T x m
)
and the observation matrix is Fmat
(m x K
). Recall that typically K < < m
,
so useFastImpute = TRUE
is often much faster.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.