# How to vectorize random effects model?

**URL:** <https://discourse.mc-stan.org/t/how-to-vectorize-random-effects-model/24971>\
**Category:** Modeling\
**Created:** [October 24, 2021, 12:18pm UTC](https://discourse.mc-stan.org/t/how-to-vectorize-random-effects-model/24971 "2021-10-24T12:18:05Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![mike-lawrence](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/mike-lawrence/32/59_2.png) [@mike-lawrence](https://discourse.mc-stan.org/u/mike-lawrence)\
**Post date:** [October 24, 2021, 2:29pm UTC](https://discourse.mc-stan.org/t/how-to-vectorize-random-effects-model/24971/11 "2021-10-24T14:29:55Z")

</div>

Now that I think of it, you might also look at the more complex model [here](https://github.com/mike-lawrence/benchmark_stan_models/tree/main/models/hmg)

It’s hard to tell from your OP given that some folks use different terms for things and it’s the contents of the predictor matrix that actually determine the proper model structure. See [here](https://discourse.mc-stan.org/t/sug-1-13-multivariate-priors-for-hierarchical-models-missing-prior-serious-identification-issue/23678/13) for elaboration.

---

_[View the full topic](https://discourse.mc-stan.org/t/how-to-vectorize-random-effects-model/24971)._
