stan-dev / example-models

Example models for Stan
http://mc-stan.org/
771 stars 479 forks source link

Initial State in Semisupervised HMM Example #106

Open jhoupt opened 7 years ago

jhoupt commented 7 years ago

In the generated quantities, the initial state likelihood is only set for the state with the highest index. I believe is this is a typo wherein a lower case k should have been used on the left side of line 51. Lines 50-51 in hmm-semisup.stan: for (k in 1:K) best_logp[1,K] <- log(phi[k,u[1]]);

The same typo appears in the manual.