# AR(1) in the error matrix rather than in the linear model

**URL:** <https://discourse.mc-stan.org/t/ar-1-in-the-error-matrix-rather-than-in-the-linear-model/21813>\
**Category:** brms\
**Created:** [April 10, 2021, 2:30pm UTC](https://discourse.mc-stan.org/t/ar-1-in-the-error-matrix-rather-than-in-the-linear-model/21813 "2021-04-10T14:30:06Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![paul.buerkner](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/paul.buerkner/32/3303_2.png) [@paul.buerkner](https://discourse.mc-stan.org/u/paul.buerkner)\
**Post date:** [April 10, 2021, 8:07pm UTC](https://discourse.mc-stan.org/t/ar-1-in-the-error-matrix-rather-than-in-the-linear-model/21813/6 "2021-04-10T20:07:51Z")

</div>

nlme uses a slightly different paramerization which leads to sigma being no longer sigma but something like sigma / sqrt(1 - ar^2) or something like that (hence higher sigma being reported for higher ar). I am at my phone so please don’t take my word for the formula.

brms parametizes correctly so that sigma is in fact what we expect it to be in this case.

---

_[View the full topic](https://discourse.mc-stan.org/t/ar-1-in-the-error-matrix-rather-than-in-the-linear-model/21813)._
