I've searched, there is a package in Matlab, but couldn't find anyone for Markov regime switching. I was wondering if I need to code myself, what algorithm do I need to follow?

Similar questions and discussions