# Trying to specify intercept only model

**URL:** https://discourse.mc-stan.org/t/trying-to-specify-intercept-only-model/12390
**Category:** rstanarm
**Created:** [December 19, 2019, 8:37pm UTC](https://discourse.mc-stan.org/t/trying-to-specify-intercept-only-model/12390 "2019-12-19T20:37:08Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Longshot408](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/longshot408/32/6484_2.png) [@Longshot408](https://discourse.mc-stan.org/u/Longshot408)
#### Post date: [December 20, 2019, 2:20am UTC](https://discourse.mc-stan.org/t/trying-to-specify-intercept-only-model/12390/3 "2019-12-20T02:20:31Z")

</div>

Not sure to be honest, as I don’t even understand that line of code. I got it from your suggestion actually, [in this post](https://discourse.mc-stan.org/t/trying-to-get-a-bayes-factor-from-an-rstanarm-glm/11977/6) I made a while ago. I’ve been sticking it in every model I’ve been running so that I can compare all the models with Bayes Factors later with `performance::compare_performance()` and `bayestestR::bayesfactor_models()`

So far I’ve copied and pasted that one same line into three other models in my RMarkdown file and all of them work fine; its just this 4th, intercept-only model that breaks.

---

_[View the full topic](https://discourse.mc-stan.org/t/trying-to-specify-intercept-only-model/12390)._
