# Constrained multinormal

**URL:** <https://discourse.mc-stan.org/t/constrained-multinormal/10677>\
**Category:** Modeling\
**Created:** [August 30, 2019, 8:47am UTC](https://discourse.mc-stan.org/t/constrained-multinormal/10677 "2019-08-30T08:47:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [August 30, 2019, 11:49am UTC](https://discourse.mc-stan.org/t/constrained-multinormal/10677/2 "2019-08-30T11:49:21Z")

</div>

> [@lukas-rokka](#):
>
> However, I get a lot of “divergent transitions after warmup” messages. Is there better way to keep individual parameters within constraints when there exist a group effect?

> [@Multi\_normal\_lcdf?](https://discourse.mc-stan.org/t/multi-normal-lcdf/6652/6):
>
> The linked conversation was me asking for a truncated MVN, way back when. Ben provided the attached solutions. [tMVN.pdf](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/7/7f43a0b7a1035803d5590068f0fbb24bead61abc.pdf) (2.4 MB) [tMVN.stan](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/4/419f9794ed7cbf9df2a85987b148094a12193e78.stan) (1.3 KB)

---

_[View the full topic](https://discourse.mc-stan.org/t/constrained-multinormal/10677)._
