# How to most efficiently reduce\_sum in a hierarchical logistic model

**URL:** <https://discourse.mc-stan.org/t/how-to-most-efficiently-reduce-sum-in-a-hierarchical-logistic-model/15309>\
**Category:** Modeling\
**Tags:** performance\
**Created:** [May 22, 2020, 2:02am UTC](https://discourse.mc-stan.org/t/how-to-most-efficiently-reduce-sum-in-a-hierarchical-logistic-model/15309 "2020-05-22T02:02:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [May 22, 2020, 1:37pm UTC](https://discourse.mc-stan.org/t/how-to-most-efficiently-reduce-sum-in-a-hierarchical-logistic-model/15309/3 "2020-05-22T13:37:48Z")

</div>

You might also take a look [here](https://discourse.mc-stan.org/t/case-study-preview-speeding-up-stan-by-reducing-redundant-computation/14228) as I suspect you might have a lot of redundant computations in this model that could be eliminated for performance gains in addition to using `reduce_sum`.

---

_[View the full topic](https://discourse.mc-stan.org/t/how-to-most-efficiently-reduce-sum-in-a-hierarchical-logistic-model/15309)._
