as_bssm | R Documentation |
Converts SSModel
object of KFAS
package to general bssm
model of type ssm_ulg
, ssm_mlg
, ssm_ung
or
ssm_mng
. As KFAS
supports formula syntax for defining
e.g. regression and cyclic components it maybe sometimes easier to define
the model with KFAS::SSModel
and then convert for the bssm style with
as_bssm
.
as_bssm(model, kappa = 100, ...)
model |
Object of class |
kappa |
For |
... |
Additional arguments to model building functions of |
An object of class ssm_ulg
, ssm_mlg
, ssm_ung
or
ssm_mng
.
library("KFAS")
model_KFAS <- SSModel(Nile ~
SSMtrend(1, Q = 2, P1 = 1e4), H = 2)
model_bssm <- as_bssm(model_KFAS)
logLik(model_KFAS)
logLik(model_bssm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.