Closed eipi10 closed 2 years ago
sorry about that! the model is using a custom prior and I didn't include an RNG function to allow it to sample from the prior. I'll try to update the package soon-ish. Would be a great feature to have for sure.
Unfortunately, this seems to be an underlying issue in brms, so it might take a while to resolve.
I made some changes to how the priors on the cutpoints are calculated, so it should work now. I also found a bug related to that calculation which could cause divergent transitions (!!), so on the whole this was a useful exercise. Try installing directly from github (remotes::install_github('saudiwin/ordbetareg_pack')
) to use the sample_prior option.
Great. I will install the updated package. Thanks!
I've been working with ZOIB regression models in
brms
and decided to try the ordered beta model after seeing your posts on the Stan forum and browsing through your paper (which I hope to read in more detail). I includedsample_prior=TRUE
as an argument in theordbetareg
function, which caused a compilation error. I'm not sure if I should have expectedsample_prior_TRUE
to work, but I wanted to bring this to your attention in case it's a bug. When I removed the argument, the sampling completed as expected. Now I just have to spend some time getting a better understanding of the model. Thanks for making this model and package available!Below is a reproducible example using the pew data from the Vignette.