#statstab #221 #brms posterior_epred() vs posterior_predict()

Thoughts: When starting off with bayesian mixed models you'll run across this issue. Here's one of the best forum posts on it.

#bayesian #mixedeffects #models #posterior #effects #prediction

https://discourse.mc-stan.org/t/confusion-on-difference-between-posterior-epred-and-posterior-predict-in-a-mixed-effects-modelling-context/28813

Confusion on difference between posterior_epred() and posterior_predict() in a mixed effects modelling context

Hi everyone, This is my first time posting to this forum but I am hopeful someone here can help me understand the difference between the functions posterior_epred() and posterior_predict() in the context of mixed effects modelling. These functions are used in various Bayesian R packages (e.g., rstanarm, brms, marginaleffects, brmsmargins) but it is not clear to me how they differ and, most importantly, when to use one versus the other in a mixed effects modelling context. I tried to get some ...

The Stan Forums