P_0: initial state covariance (rpxrp) or empty (NULL).
Returns
Smoothed state and covariance estimates, including initial (t = 0) values. - F_smooth: Txrp smoothed state vectors, equal to the filtered state in period T.
P_smooth: rpxrpxT smoothed state covariance, equal to the filtered covariance in period T.
F_smooth_0: 1xrp initial smoothed state vectors, based on F_0.
P_smooth_0: rpxrp initial smoothed state covariance, based on P_0.
The initial smoothed values for period t = T are set equal to the filtered values. If F_0 and P_0 are supplied, the smoothed initial conditions (t = 0 values) are also calculated and returned. For further details see any textbook on time series such as Shumway & Stoffer (2017), which provide an analogous R implementation in astsa::Ksmooth0.
Examples
# See ?SKFS
References
Shumway, R. H., & Stoffer, D. S. (2017). Time Series Analysis and Its Applications: With R Examples. Springer.
Harvey, A. C. (1990). Forecasting, structural time series models and the Kalman filter.