loglik
computes the log-likelihood of a state-space model of specified
Q/sig^2, P1/sig^2, theta1
.
loglik(X, y, Qstar, use, p1, train_theta1, train_Q, mode = "gaussian")
a numeric value for the log-likelihood.
explanatory variables
time series
the ratio Q/sig^2
the availability variable
coefficient for P1/sig^2 = p1 I
training set for estimation of theta1
time steps on which the log-likelihood is computed
(optional, default gaussian
)