Learn R Programming

KFAS (version 0.6.1)

distsmoother: Disturbance smoother

Description

Computes smoothed values of disturbance terms eps_t and eta_t, and their variances.

Usage

distsmoother(out)

Arguments

out
Output of function 'ks'. Optcal must be (TRUE,TRUE,TRUE,TRUE/FALSE).

Value

  • A list with the output elements from Kalman smoother and following new elements:
  • epshatp*n array of E(eps_t | y_1, ..., y_n).
  • epshatvarp*p*n array of var(eps_t | y_1, ..., y_n).
  • etahatr*n array of E(eta_t | y_1, ..., y_n).
  • etahatvarr*r*n array of var(eta_t | y_1, ..., y_n).

References

Koopman, S.J. and Durbin J. (2001). Time Series Analysis by State Space Methods. Oxford: Oxford University Press