Hi all,

I have a few underdispersed count responses that I have been modeling. When I started ~1 year ago, the Conway-Maxwell distribution in STAN/brms was only just starting to be implemented. As an interim solution, I decided to apply conditional logit mixed models, which worked well enough, but seemed a bit wonky – for example, the range of plausible responses gets truncated at the highest observed value – and statistically inefficient. I am now circling back to these analyses to see if I can gain some additional insight with the experimental implementation of the `brms_family(‘com_poisson’)`

. Working with the first data set, the model runs with apparently good convergence properties and the parameter estimates pass the initial smell test. However, when I try to use higher-level model post-processing functions, e.g. `posterior_predict(…)`

, `pp_check(…)`

, etc., I get the following error:

`Error: ‘n’ must match the maximum length of the parameter vectors`

.

Is there a (hopefully quick) solution for this error? Or is this a product of the experimental nature of the distributional family? I am guessing the error emerges somewhere out of the structure of the brmsfit object, since ‘n’ is not an argument to any of the methods I am calling as far as I can tell.

**Update:** I gave this family a trial run with a second data set and post-processing seems to work as expected. Might the previous errors have something to do with a truncation boundary I applied? With the problematic data set, I know that the response count cannot exceed seven, so I specified trunc(ub=7) as additional response information. I now recall that I felt the most comfortable with the conditional logit model structure/assumptions for this particular data set, so perhaps this error serves as tacit confirmation of my suspicion?

Thanks for your help,

Joshua

Please also provide the following information in addition to your question:

- Operating System: macOS 10.14.6
- brms Version: 2.10.0