# What is meant by having coefficients in "batches"

**URL:** <https://discourse.mc-stan.org/t/what-is-meant-by-having-coefficients-in-batches/1990>\
**Category:** Modeling\
**Created:** [September 23, 2017, 6:56pm UTC](https://discourse.mc-stan.org/t/what-is-meant-by-having-coefficients-in-batches/1990 "2017-09-23T18:56:46Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![bbbales2](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bbbales2/32/77_2.png) [@bbbales2](https://discourse.mc-stan.org/u/bbbales2)\
**Post date:** [September 24, 2017, 6:54pm UTC](https://discourse.mc-stan.org/t/what-is-meant-by-having-coefficients-in-batches/1990/12 "2017-09-24T18:54:56Z")

</div>

> to really walk a novice through the process of transitioning from lme style syntax to stan/JAGS/WinBUGS?

There’s a couple functions in the brms package ([CRAN - Package brms](https://cran.r-project.org/web/packages/brms/index.html)) `make_stancode` and `make_standata` that turn formula-like models into Stan models + the input data.

I’ve not done this myself (other than checking to make sure the functions do print out human-readable stuff), but if you want to look under the hood this might be the easiest way. And the package is @bgoodri approved ([Brms paper published](http://discourse.mc-stan.org/t/brms-paper-published/1970)), so I don’t think I’m leading you too far astray.

---

_[View the full topic](https://discourse.mc-stan.org/t/what-is-meant-by-having-coefficients-in-batches/1990)._
