regSSM(y, X, H = NULL, Q = NULL, u = NULL,
distribution = c("Gaussian", "Poisson", "Binomial"),
transform = c("none", "ldl", "augment"),
tolF = .Machine$double.eps^0.5,
tol0 = .Machine$double.eps^0.5)
ts
, or a
object that can be coerced to such.KFAS
require
diagonal covariance matrix $H_t$. If
$H_t$ is not diagonal, model can be transformed
using one of the two options. Option "ldl"
performs LDL decomposition for covariance matrix
$H_t$, and m$$y_t = X_t \beta_t + \epsilon_t,$$
$$\alpha_{t+1} = T_t \alpha_t + R_t \eta_t,$$
where $\epsilon_t ~ N(0,H_t)$, $\eta_t ~ N(0,Q_t)$ and $\alpha_1 ~ N(a_1,P_1)$ independently of each other. In case of non-Gaussian observations, the observation equation is of form $p(y_t|\theta_t) = p(y_t|Z_t\alpha_t)$, with $p(y_t|\theta_t)$ being one of the following:
arimaSSM
for state space representation of
ARIMA model, structSSM
for structural time
series model, and SSModel
for custom
SSModel
object.