I want to estimate a 2-component mixture model for 3 ordinal variables that have 4, 7 and 6 categories. A priori, I think the two factors in the mixture will have Gaussian distributions.
Could you please tell me how to specify the priors for the analysis? My attempt to do this so far yields “Error: Expecting a single value when fixing parameters.”
Ultimately, this is a multi-level problem. The ordvar ratings derive from human raters in about 2 dozen centers. So, I would like to generalise the final result to take center into account. I hope that adding +(1|center) to the formula will do this?
Thanks for your help
I think there are multiple things going on here, which we need to get straight.
First, let’s reduce our model to one response variable (ordvar4, say) for now. If we just wanted to fit a basic (non-mixture) model without any predictors for ordvar4, we would write
fit <- brm(ordvar4 ~ 1, dat, family = cumulative())
If we wanted to model ordvar4 as a mixture of two ordinal cumulative families, we would go for:
mix <- mixture(cumulative, nmix=2)
fit <- brm(ordvar4 ~ 1, dat, family = mix)
For the second model to work, you will need to update brms to the latest CRAN version (2.2.0). Let’s start by getting the above models to run. Then we can expand further.
Sorry for the late response. I currently don’t have the time to look at the models in detail, but it may be easiest to directly specify them in Stan as the mixture functionality of brms is not so far developed.