Provides a comprehensive and concrete illustration for the state-space modelCovers whole solutions through a consistent Bayesian approach: the batch method by MCMC using Stan and sequential ones by Kalman/particle filter using RPresents advanced topics such as real-time structural change detection with the horseshoe prior