# New Stan data type: zero\_sum\_vector

**URL:** <https://discourse.mc-stan.org/t/new-stan-data-type-zero-sum-vector/26215>\
**Category:** Developers\
**Tags:** specification\
**Created:** [February 3, 2022, 8:50pm UTC](https://discourse.mc-stan.org/t/new-stan-data-type-zero-sum-vector/26215 "2022-02-03T20:50:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![martinmodrak](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/martinmodrak/32/133_2.png) [@martinmodrak](https://discourse.mc-stan.org/u/martinmodrak)\
**Post date:** [February 24, 2022, 6:50pm UTC](https://discourse.mc-stan.org/t/new-stan-data-type-zero-sum-vector/26215/8 "2022-02-24T18:50:43Z")

</div>

I wondered about exactly the same thing a while ago. It turns out that with normal prior on the intercept, you can parametrize the model with sum-to-zero constraint, resolve identifiability issues + remove one parameter, but then recover _exactly_ the same inferences as you would have with the original model: [Correlated posterior - Sum to zero constraint for varying intercepts?! - #24 by martinmodrak](https://discourse.mc-stan.org/t/correlated-posterior-sum-to-zero-constraint-for-varying-intercepts/25608/24)

(there’s also a lot of interesting ideas from other contributors to the thread)

The specific way I did that however didn’t result in improved performance in the cases I cared about, but hope there’s still something to learn from the attempt.

I’ll also tag @paul.buerkner who seemed to be interested in the previous discussion on the topic.

---

_[View the full topic](https://discourse.mc-stan.org/t/new-stan-data-type-zero-sum-vector/26215)._
