First, a fit is performed for the specified null model. Then, a fit is performed for the alternative model that the sequence is partially autoregressive. The likelihood scores are computed for both models, and the log likelihood ratio is returned.
likelihood_ratio.par(X, robust = FALSE, null_model = c("rw", "ar1"),
opt_method = c("css", "fkf", "ss"), nu = par.nu.default())
TRUE
, then errors are assumed to follow a t-distribution
with nu
degrees of freedom. If FALSE
, then errors are assumed
to follow a normal distribution. Default: FALSE
sigma_M = 0
)}
sigma_R = 0
)}"ss"
Steady-state Kalman filter with normally distributed errors"css"
Steady-state Kalman filter with normally distributed errors,
coded in C++"fkf"
Traditional Kalman filter of thefkf
packageTRUE
fit.par