Stata Markov Switching Model, See the new features in Stata 19.