Dependent mixture models – hidden Markov models of GLMs and other distributions in S4
