# Difference between method = fitted vs. predict in marginal\_effects function

**URL:** <https://discourse.mc-stan.org/t/difference-between-method-fitted-vs-predict-in-marginal-effects-function/6901>\
**Category:** brms\
**Created:** [December 9, 2018, 10:37am UTC](https://discourse.mc-stan.org/t/difference-between-method-fitted-vs-predict-in-marginal-effects-function/6901 "2018-12-09T10:37:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jackbailey](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jackbailey/32/14978_2.png) [@jackbailey](https://discourse.mc-stan.org/u/jackbailey)\
**Post date:** [December 9, 2018, 8:42pm UTC](https://discourse.mc-stan.org/t/difference-between-method-fitted-vs-predict-in-marginal-effects-function/6901/3 "2018-12-09T20:42:24Z")

</div>

Of course. If I find one I’ll post it here for posterity.

**Edit:** “`method = "predict"`” accounts for the residual (observation-level) variance, the uncertainty in the fixed coefficients, and the uncertainty in the variance parameters for the grouping factors. “`method = "fitted"`” accounts only for the uncertainty in the fixed coefficients and the uncertainty in the variance parameters for the grouping factors.

[https://github.com/paul-buerkner/brms/issues/82](https://github.com/paul-buerkner/brms/issues/82)

---

_[View the full topic](https://discourse.mc-stan.org/t/difference-between-method-fitted-vs-predict-in-marginal-effects-function/6901)._
