# \#bridgesampling

**URL:** https://discourse.mc-stan.org/tag/bridgesampling/204.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)

---

## [Advice on Bayes factor analysis (logml could not be estimated within maxiter)](https://discourse.mc-stan.org/t/advice-on-bayes-factor-analysis-logml-could-not-be-estimated-within-maxiter/40761)

<div class="topic-metadata">

**Author:** [@mawilson1234](https://discourse.mc-stan.org/u/mawilson1234)\
**Replies:** 2\
**Last updated:** [December 30, 2025, 6:18am UTC](https://discourse.mc-stan.org/t/advice-on-bayes-factor-analysis-logml-could-not-be-estimated-within-maxiter/40761 "2025-12-30T06:18:26Z")

</div>

I’m running into issues doing a Bayes factor analysis on a dataset I’ve gathered. The model I’m fitting is a pretty simple logistic regression: correct ~ voice\_n + (1 + voice\_n | subject) + (1 | item:voice\_n) …

---

## [Bridge sampling is not compatible with the \`stan\_surv\` object](https://discourse.mc-stan.org/t/bridge-sampling-is-not-compatible-with-the-stan-surv-object/36552)

<div class="topic-metadata">

**Author:** [@DexterW](https://discourse.mc-stan.org/u/DexterW)\
**Replies:** 0\
**Last updated:** [September 11, 2024, 3:41am UTC](https://discourse.mc-stan.org/t/bridge-sampling-is-not-compatible-with-the-stan-surv-object/36552 "2024-09-11T03:41:55Z")

</div>

I am trying to obtain the bridge sampling estimate of the log marginal likelihood for a Bayesian Cox regression model. The bridgesampling::bridge\_sampler function works with brms::brm objects but not with rstanarm::stan…

---

## [Bridgestan and Bridgesampling](https://discourse.mc-stan.org/t/bridgestan-and-bridgesampling/35216)

<div class="topic-metadata">

**Author:** [@cwolfe](https://discourse.mc-stan.org/u/cwolfe)\
**Replies:** 3\
**Last updated:** [May 25, 2024, 3:47pm UTC](https://discourse.mc-stan.org/t/bridgestan-and-bridgesampling/35216 "2024-05-25T15:47:34Z")

</div>

Has anyone had any luck with using the log\_density() from an instantiation of bridgestan as the log\_posterior argument in bridge-sampler? I have been using bridgestan for some downstream prediction analyses and post-hoc …

---

## [Fatal error when using bayes\_factor()](https://discourse.mc-stan.org/t/fatal-error-when-using-bayes-factor/31158)

<div class="topic-metadata">

**Author:** [@KathKu](https://discourse.mc-stan.org/u/KathKu)\
**Replies:** 0\
**Last updated:** [April 22, 2023, 8:33am UTC](https://discourse.mc-stan.org/t/fatal-error-when-using-bayes-factor/31158 "2023-04-22T08:33:10Z")

</div>

Hello, I have created model\_full and model\_null and want to compare them: BF\_brms\_bridge = bayes\_factor(model\_full, model\_null) BF\_brms\_bridge$bf Every time I do it, the R has a fatal error. I restarted and installed…

---

## [Simplex variable error during bridgesampling](https://discourse.mc-stan.org/t/simplex-variable-error-during-bridgesampling/30811)

<div class="topic-metadata">

**Author:** [@anikokusztor](https://discourse.mc-stan.org/u/anikokusztor)\
**Replies:** 2\
**Last updated:** [March 21, 2023, 9:35pm UTC](https://discourse.mc-stan.org/t/simplex-variable-error-during-bridgesampling/30811 "2023-03-21T21:35:47Z")

</div>

Hi all, I have been stuck with this problem for a few days now and I would really appreciate anyone’s input: I would like to compare two brm models with Bayes Factor but something goes wrong during bridesampling. Data…

---

## [Crashes using bayes\_factor() in brms](https://discourse.mc-stan.org/t/crashes-using-bayes-factor-in-brms/28708)

<div class="topic-metadata">

**Author:** [@ps2](https://discourse.mc-stan.org/u/ps2)\
**Replies:** 1\
**Last updated:** [September 1, 2022, 4:24pm UTC](https://discourse.mc-stan.org/t/crashes-using-bayes-factor-in-brms/28708 "2022-09-01T16:24:59Z")

</div>

Possibly related to this thread, each time I try to use the bridge sampler via bayes\_factor() in brms (2.17.0), R Studio crashes. As far as I’m aware, I have the latest (development) versions of rstan and StanHeaders (2.…

---

## [Bridge sampling with the latest rstan (yet again not working)](https://discourse.mc-stan.org/t/bridge-sampling-with-the-latest-rstan-yet-again-not-working/27071)

<div class="topic-metadata">

**Author:** [@bnicenboim](https://discourse.mc-stan.org/u/bnicenboim)\
**Replies:** 5\
**Last updated:** [April 8, 2022, 2:41pm UTC](https://discourse.mc-stan.org/t/bridge-sampling-with-the-latest-rstan-yet-again-not-working/27071 "2022-04-08T14:41:41Z")

</div>

Hi, yet again I’m trying my luck with the latest rstan and bridge sampling and no success. I have Linux, I’ve installed rstan like this, which seems to work so far. remove.packages(c("StanHeaders", "rstan")) install.pa…

---

## [Segfault with bridgesampling](https://discourse.mc-stan.org/t/segfault-with-bridgesampling/24372)

<div class="topic-metadata">

**Author:** [@bnicenboim](https://discourse.mc-stan.org/u/bnicenboim)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 8:20am UTC](https://discourse.mc-stan.org/t/segfault-with-bridgesampling/24372 "2021-09-22T08:20:52Z")

</div>

Hi, bridgesampling package suddenly stopped working giving an awful segfault even with a tiny dataset, I’m not sure what changed, but it’s not the rstan version or brms or bridgesampling… This is the data and code. I’m…
