# One chain not moving: sampling for complex nonlinear mixed effects model

**URL:** <https://discourse.mc-stan.org/t/one-chain-not-moving-sampling-for-complex-nonlinear-mixed-effects-model/17156>\
**Category:** brms\
**Tags:** techniques, ecology, specification, fitting-issues\
**Created:** [August 1, 2020, 2:32pm UTC](https://discourse.mc-stan.org/t/one-chain-not-moving-sampling-for-complex-nonlinear-mixed-effects-model/17156 "2020-08-01T14:32:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [August 3, 2020, 12:33pm UTC](https://discourse.mc-stan.org/t/one-chain-not-moving-sampling-for-complex-nonlinear-mixed-effects-model/17156/5 "2020-08-03T12:33:37Z")

</div>

I agree with Andrew that figuring out why the model has problems should be your first concern and only when you can’t make progress there would I consider using stacking to get some inferences even from a non-coverging model.

I have drafted a list of strategies to handle models with divergent transitions that also (partially) apply to the case of high R-hats [Divergent transitions - a primer](https://discourse.mc-stan.org/t/divergent-transitions-a-primer/17099) Would be cool if you checked it out and let us know if:

- You are able to understand the strategies given
- You are able to determine which of those can be applied to your case
- Some of them eventually let you move forward

I’ve previously had premature termination of various R computations result in weird warnings, so I wouldn’t worry about the warning much.

Best of luck with your model!

---

_[View the full topic](https://discourse.mc-stan.org/t/one-chain-not-moving-sampling-for-complex-nonlinear-mixed-effects-model/17156)._
