# New update for projpred

**URL:** <https://discourse.mc-stan.org/t/new-update-for-projpred/18132>\
**Category:** Announcements\
**Tags:** projpred\
**Created:** [September 22, 2020, 1:03pm UTC](https://discourse.mc-stan.org/t/new-update-for-projpred/18132 "2020-09-22T13:03:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlejandroCatalina](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/alejandrocatalina/32/6093_2.png) [@AlejandroCatalina](https://discourse.mc-stan.org/u/AlejandroCatalina)\
**Post date:** [September 22, 2020, 1:03pm UTC](https://discourse.mc-stan.org/t/new-update-for-projpred/18132/1 "2020-09-22T13:03:09Z")

</div>

Hello everyone,

I’m very glad to announce (for all projpred enthusiasts and other interested people) that we just merged a major update to `projpred`'s master branch (PR is here [https://github.com/stan-dev/projpred/pull/60](https://github.com/stan-dev/projpred/pull/60)). This has been long in the making and we (@avehtari, @paul.buerkner and me) have been mentioning some of the upcoming features in several threads this past year. Biggest changes include:

1. Added support for GAMMs via `mgcv` and `gamm4`.
2. Added support for GLMMs via `lme4`.
3. Big refactor of the whole internal structure to be more modular and extensible, which will hopefully allow faster feature updates in subsequent rounds.
4. Added a new vignette showcasing the new functionality on GLMMs (a vignette for GAMMs is on the making).

We still have several important pending tasks, such as improving the overall documentation and remaking the vignette on custom reference models (the whole structure changed so much we have actually retired the previous vignette until we have time to write a new one).

I hope you guys find this helpful and exciting. We welcome any feedback and testers. Of course, we have been just a few people trying the whole functionality so any testing of complex models is very encouraged and welcome! Bear in mind that complex GAMM (or GLMM) non Gaussian models will take some time, especially for cross validated selection.

Finally, big thanks to both @paul.buerkner and @avehtari for their support and help that made this update possible!

Best regards,  
Alejandro

---

<div class="post-metadata">

**Author:** ![torkar](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/torkar/32/1355_2.png) [@torkar](https://discourse.mc-stan.org/u/torkar)\
**Post date:** [September 25, 2020, 8:47am UTC](https://discourse.mc-stan.org/t/new-update-for-projpred/18132/2 "2020-09-25T08:47:43Z")

</div>

@AlejandroCatalina I saw in another thread that you’ve started looking into ordinal models. Is that work, in particular, a vignette I guess, in this release?

---

<div class="post-metadata">

**Author:** ![denne](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/denne/32/316_2.png) [@denne](https://discourse.mc-stan.org/u/denne)\
**Post date:** [September 25, 2020, 8:54am UTC](https://discourse.mc-stan.org/t/new-update-for-projpred/18132/3 "2020-09-25T08:54:11Z")

</div>

Is this the versions that “knows about the internal structure”?

> [@Projpred: Interactions without marginal terms?](https://discourse.mc-stan.org/t/projpred-interactions-without-marginal-terms/14893/2):
>
> The current projpred doesn’t know about the structure. The new version coming soon supports formula syntax and knows about interactions, “random effects”, and smooths.

---

<div class="post-metadata">

**Author:** ![avehtari](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/avehtari/32/5935_2.png) [@avehtari](https://discourse.mc-stan.org/u/avehtari)\
**Post date:** [September 25, 2020, 9:01am UTC](https://discourse.mc-stan.org/t/new-update-for-projpred/18132/4 "2020-09-25T09:01:41Z")

</div>

> [@denne](#):
>
> Is this the versions that “knows about the internal structure”?

Yes, it knows about the formulas for GLMMs, GAMs, and GAMMs and knows how to handle the internal structure for those accordingly.

---

<div class="post-metadata">

**Author:** ![AlejandroCatalina](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/alejandrocatalina/32/6093_2.png) [@AlejandroCatalina](https://discourse.mc-stan.org/u/AlejandroCatalina)\
**Post date:** [September 25, 2020, 9:11am UTC](https://discourse.mc-stan.org/t/new-update-for-projpred/18132/5 "2020-09-25T09:11:30Z")

</div>

It’s not yet in this release but we have indeed started working on that. We don’t have a timeframe for that in particular but it’s our current work, so hopefully not more than a few months! And if you’re following the develop branch there might be news faster of course.
