The correct implementation of the Durbin and Koopman simulation smoother is explained. A possible misunderstanding is pointed out and clarified for both the basic state space model with a non-zero mean of the initial state and with time-varying intercepts (mean adjustments).
['Marek Jarociński']
A note on implementing the Durbin and Koopman simulation smoother