# \#howto

**URL:** https://discourse.mc-stan.org/tag/howto/155.md

[Latest](https://discourse.mc-stan.org/latest.md) · [Categories](https://discourse.mc-stan.org/categories.md) · [Tags](https://discourse.mc-stan.org/tags.md)

---

## [Divergent transitions - a primer](https://discourse.mc-stan.org/t/divergent-transitions-a-primer/17099)

<div class="topic-metadata">

**Author:** [@martinmodrak](https://discourse.mc-stan.org/u/martinmodrak)\
**Replies:** 8\
**Last updated:** [August 20, 2025, 12:02pm UTC](https://discourse.mc-stan.org/t/divergent-transitions-a-primer/17099 "2025-08-20T12:02:06Z")

</div>

This post is outdated, see Redirect for an improved and expanded version So you got: Warning: There were XXXX divergent transitions after warmup. What does it mean? What to do? Divergent transitions are a signal tha…

---

## [Calculating Bayes Factor for Hypothesis Testing of Copula-Based Correlation from MCMC Samples](https://discourse.mc-stan.org/t/calculating-bayes-factor-for-hypothesis-testing-of-copula-based-correlation-from-mcmc-samples/36854)

<div class="topic-metadata">

**Author:** [@Corey.Plate](https://discourse.mc-stan.org/u/Corey.Plate)\
**Replies:** 1\
**Last updated:** [October 11, 2024, 9:58pm UTC](https://discourse.mc-stan.org/t/calculating-bayes-factor-for-hypothesis-testing-of-copula-based-correlation-from-mcmc-samples/36854 "2024-10-11T21:58:37Z")

</div>

Hey everyone, Our lab has run a model that uses a copula with a uniform prior to calculate the correlation between groups of parameters in a hierarchical model with a custom likelihood function. I will display the model…

---

## [Cross-validation FAQ](https://discourse.mc-stan.org/t/cross-validation-faq/13664)

<div class="topic-metadata">

**Author:** [@avehtari](https://discourse.mc-stan.org/u/avehtari)\
**Replies:** 22\
**Last updated:** [November 10, 2023, 10:00am UTC](https://discourse.mc-stan.org/t/cross-validation-faq/13664 "2023-11-10T10:00:09Z")

</div>

EDIT: I added three new sections (“Why use cross-validation?”, “How is cross-validation related to overfitting?”, “How to use cross-validation for model selection?”) and FAQ went over discourse 32000 character limit. The…

---

## [R 4.0, rstan, and you](https://discourse.mc-stan.org/t/r-4-0-rstan-and-you/15271)

<div class="topic-metadata">

**Author:** [@Stephen\_Martin](https://discourse.mc-stan.org/u/Stephen_Martin)\
**Replies:** 39\
**Last updated:** [February 5, 2021, 6:12pm UTC](https://discourse.mc-stan.org/t/r-4-0-rstan-and-you/15271 "2021-02-05T18:12:10Z")

</div>

R 4.0 has released, and you are wanting to use rstan. Your models no longer run, you are getting cryptic error messages, and want to post here about it. With R4.0, and the latest compiler configuration, you must configu…

---

## [Understanding basics of Bayesian statistics and modelling](https://discourse.mc-stan.org/t/understanding-basics-of-bayesian-statistics-and-modelling/17243)

<div class="topic-metadata">

**Author:** [@martinmodrak](https://discourse.mc-stan.org/u/martinmodrak)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 4:48pm UTC](https://discourse.mc-stan.org/t/understanding-basics-of-bayesian-statistics-and-modelling/17243 "2020-08-05T16:48:40Z")

</div>

Status: Draft This is an experiment in using Discourse topics for documentation as discussed at Discourse - issue/question triage and need for a FAQ the content has yet to receive feedback and tweaks from the broader co…
