Thank you so much! This is wonderful - I have spent the last few days going over the GHK algorithm, Albert and Chib 1993, and even stumbled upon @CerulloE’s paper. As to the code above I think it all makes sense to me. Few questions:
-
Could
mus
be written asvector [K] mus [N]
. Thus, it would equate to my mean function g(x) = x^r? In turn, as you have it writtenYs
would be my ordinal observed responses variables (0,1,2,3,etc.) asvector[K]Ys[N]
? Is this correct? -
Would
Threshholds
be defined in the parameter block as andN_thresh
in the data block? If so, I’d have to read inN_thres
into the data block and definevector [N_thresh] Thresholds [N,K]
? Something like this? -
I could then out a prior on Thresholds like Betancourt’s induced dirichlet? If I wanted to return the latent values of
z
would I move those to the generated quantities block?
I suppose my big question is where/how do I declare n_thresh
and thresholds
. I’ve been looking at some of @CerulloE code as well and I’m trying to figure out how to modify. Let’s say I have categoris labelled 0,1,2 so 3 ordered categories. How would this translate?
Thank you!! Also, I’ll start to play around with this code and then see what I can do about the mixed setting.