Estimation of state-space models with endogenous Markov regime-switching parameters · Study