I would like to capture the dependence between returns using regime switching copulas and I'd like to know if there is any code currently available.
More in details, I would like to estimate the maximum likelihood estimates using the EM algorithm displayed in Hamilton in particular. In the framework, we consider two states of the economy, each one characterized by a certain copula and dependence parameter.
Thank you very much in advance.