These programs replicate numerical examples from section 4. Run the file main.m. The key function is kfsim.m, which correctly implements the fastest version of the Durbin and Koopman (2002) simulation smoother for a state space model.
Working Paper (2021)
Fernández-de-Marcos Alberto and García-Portugués Eduardo