update_struct | R Documentation |
This function serves to update the warpDLM variance parameters when the underlying DLM is a structural model (i.e. local level or local linear trend). It assumes a Unif(0,A=10^4) prior on all standard deviations.
update_struct(fit, z_star, theta)
fit |
the KFAS model object describing the DLM |
z_star |
the latest draw of z* |
theta |
the latest draw of the latent state(s) theta |
A KFAS model object (of class SSModel) updated with the newly sampled variance parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.