# Projpred error

**URL:** <https://discourse.mc-stan.org/t/projpred-error/37314>\
**Category:** Interfaces\
**Tags:** projpred\
**Created:** [November 20, 2024, 3:52am UTC](https://discourse.mc-stan.org/t/projpred-error/37314 "2024-11-20T03:52:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fweber144](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/fweber144/32/15592_2.png) [@fweber144](https://discourse.mc-stan.org/u/fweber144)\
**Post date:** [November 20, 2024, 5:32am UTC](https://discourse.mc-stan.org/t/projpred-error/37314/2 "2024-11-20T05:32:40Z")

</div>

Hi Shabnam,

This sounds a bit like rstanarm issue [#551](https://github.com/stan-dev/rstanarm/issues/551), so I would try to write out the formula explicitly (will be very long in your case) or at least avoid `reformulate()` and try to use dot notation (e.g., `y ~ .`), but I’m not sure if this will actually help (given that rstanarm issue). Alternatively, it could be something like [Error message from projpred with binomial regression model fitted in rstanarm](https://discourse.mc-stan.org/t/error-message-from-projpred-with-binomial-regression-model-fitted-in-rstanarm/14856), so do you have `NA`s in your dataset?

In any case, I currently think this is related to rstanarm, so using brms or something else should avoid this.

---

_[View the full topic](https://discourse.mc-stan.org/t/projpred-error/37314)._
