# Model comparison methods

**URL:** <https://discourse.mc-stan.org/t/model-comparison-methods/2597>\
**Category:** General\
**Tags:** ecology\
**Created:** [November 24, 2017, 3:00pm UTC](https://discourse.mc-stan.org/t/model-comparison-methods/2597 "2017-11-24T15:00:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [November 24, 2017, 5:52pm UTC](https://discourse.mc-stan.org/t/model-comparison-methods/2597/2 "2017-11-24T17:52:14Z")

</div>

> [@loubar](#):
>
> Initially I followed the guidance in this paper [[1507.04544] Practical Bayesian model evaluation using leave-one-out cross-validation and WAIC](https://arxiv.org/abs/1507.04544) to use PSIS-LOO, but the Pareto diagnostics suggested the LOO-CV approximations wouldn’t be robust for a lot of my models. I then used WAIC to rank these models, but your paper here [[1503.08650] Comparison of Bayesian predictive methods for model selection](https://arxiv.org/abs/1503.08650) suggested this could introduce bias when many models are compared.

This is not a good process. The main reason to use PSIS-LOO is because it tells you when its assumptions are not satisfied. If not, then the next course of action is to reconsider the model, not to try another model comparison tool that does not even tell you when its assumptions are not satisfied.

Also, the point about bias when there are many models being compared applies to PSIS-LOO and Bayes factors, as well as WAIC. Comparing models by Bayes factors is completely different than comparing models by PSIS-LOO (or a less robust information criterion), so you should generally decide which route to take before even doing the analysis. PSIS-LOO attempts to answer the question “Which model is expected to best predict new data, given the existing data?” The Bayes factor is largely driven by the pre-data expectation of the likelihood function with respect to the prior distribution, so it is sort of a contest to see which model has the best priors associated with it.

In your case, where you “have a total of 659 candidate models including all possible subsets of predictors”, none of the above approaches really make sense. There is a procedure for this situation outlined in

> **[Comparison of Bayesian predictive methods for model selection - Statistics...](https://link.springer.com/article/10.1007/s11222-016-9649-y)**
>
> The goal of this paper is to compare several widely used Bayesian model selection methods in practical model selection problems, highlight their differences and give recommendations about the preferred approaches. We focus on the variable subset...

but the implementation in

> **[GitHub - stan-dev/projpred: Projection predictive variable selection](https://github.com/stan-dev/projpred)**
>
> Projection predictive variable selection. Contribute to stan-dev/projpred development by creating an account on GitHub.

currently only works for models estimated by `stan_glm` in the **rstanarm** R package but not for the negative binomial. You could try it with a Poisson likelihood and dummy variables for all the intercept shifts, but you are going to need to use a prior distribution that regularizes heavily.

---

_[View the full topic](https://discourse.mc-stan.org/t/model-comparison-methods/2597)._
