# Latest

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

---

## [Welcome to the Stan Forums!](https://discourse.mc-stan.org/t/welcome-to-the-stan-forums/8)

<div class="topic-metadata">

**Author:** [@system](https://discourse.mc-stan.org/u/system)\
**Replies:** 0\
**Last updated:** [August 6, 2016, 3:26pm UTC](https://discourse.mc-stan.org/t/welcome-to-the-stan-forums/8 "2016-08-06T15:26:23Z")

</div>

The Stan Forums provide a community for asking and answering questions about all aspects of Stan. Before creating a new topic please search the Forums to see if your questions has already been answered. When posting ne…

---

## [Two fully funded PhD positions in statistical ecology (Belgium)](https://discourse.mc-stan.org/t/two-fully-funded-phd-positions-in-statistical-ecology-belgium/41741)

<div class="topic-metadata">

**Author:** [@max](https://discourse.mc-stan.org/u/max)\
**Replies:** 2\
**Last updated:** [November 12, 2026, 12:18am UTC](https://discourse.mc-stan.org/t/two-fully-funded-phd-positions-in-statistical-ecology-belgium/41741 "2026-11-12T00:18:14Z")

</div>

Hi all, Our statistical ecology group at KU Leuven and UHasselt (Eclosion Lab) is hiring two PhD students to develop Bayesian hierarchical models in Stan for biodiversity research. We model opportunistically collected d…

---

## [Modelling noise with temporal autocorrelation](https://discourse.mc-stan.org/t/modelling-noise-with-temporal-autocorrelation/41815)

<div class="topic-metadata">

**Author:** [@Edouard2laire](https://discourse.mc-stan.org/u/Edouard2laire)\
**Replies:** 4\
**Last updated:** [November 10, 2026, 9:35pm UTC](https://discourse.mc-stan.org/t/modelling-noise-with-temporal-autocorrelation/41815 "2026-11-10T21:35:10Z")

</div>

Hello, Background i am trying to reproduce this model Autoregressive model based algorithm for correcting motion and serially correlated errors in fNIRS - PMC in Stan. In short, we are using a GLM to model a time cour…

---

## [Theortical - historical question](https://discourse.mc-stan.org/t/theortical-historical-question/41736)

<div class="topic-metadata">

**Author:** [@nitzan\_shahar](https://discourse.mc-stan.org/u/nitzan_shahar)\
**Replies:** 6\
**Last updated:** [November 8, 2026, 8:47pm UTC](https://discourse.mc-stan.org/t/theortical-historical-question/41736 "2026-11-08T20:47:36Z")

</div>

Hi All, I teach an MA stat course in neuroscience and recently began incorporating the history of statistics to trace how the field evolved. I share short excerpts from primary texts so students can get a feel for the o…

---

## [Release of the R package footBayes 2.1.0 (using CmdStan)](https://discourse.mc-stan.org/t/release-of-the-r-package-footbayes-2-1-0-using-cmdstan/41662)

<div class="topic-metadata">

**Author:** [@LeoEgidi1](https://discourse.mc-stan.org/u/LeoEgidi1)\
**Replies:** 2\
**Last updated:** [November 7, 2026, 10:50am UTC](https://discourse.mc-stan.org/t/release-of-the-r-package-footbayes-2-1-0-using-cmdstan/41662 "2026-11-07T10:50:58Z")

</div>

Dear Stan community, We are pleased to announce the release of version 2.1.0 of footBayes, now available on CRAN. footBayes is an R package for the estimation, visualization and prediction of goal-based football models…

---

## [Multiple small PRs or a single bundle for a bunch of related, but independent changes?](https://discourse.mc-stan.org/t/multiple-small-prs-or-a-single-bundle-for-a-bunch-of-related-but-independent-changes/41656)

<div class="topic-metadata">

**Author:** [@jachymb](https://discourse.mc-stan.org/u/jachymb)\
**Replies:** 7\
**Last updated:** [November 7, 2026, 10:13am UTC](https://discourse.mc-stan.org/t/multiple-small-prs-or-a-single-bundle-for-a-bunch-of-related-but-independent-changes/41656 "2026-11-07T10:13:49Z")

</div>

I was working on improving numerical stability of some functions. I have currently identified 7 functions where I can make some improvements to numerical stability. These changes are in theory independent, but they shar…

---

## [Cmdstanr g++ permission denied](https://discourse.mc-stan.org/t/cmdstanr-g-permission-denied/41805)

<div class="topic-metadata">

**Author:** [@RElahi](https://discourse.mc-stan.org/u/RElahi)\
**Replies:** 12\
**Last updated:** [November 6, 2026, 6:36pm UTC](https://discourse.mc-stan.org/t/cmdstanr-g-permission-denied/41805 "2026-11-06T18:36:35Z")

</div>

My Windows machine recently updated its OS, which seems to have messed up a lot of my R packages. I was able to fix all of them, but now I cannot compile brms models using cmdstanr. I tried reinstalling rstan, cmdstanr, …

---

## [Log Student-t comparing differences in scale](https://discourse.mc-stan.org/t/log-student-t-comparing-differences-in-scale/41729)

<div class="topic-metadata">

**Author:** [@Hunter24](https://discourse.mc-stan.org/u/Hunter24)\
**Replies:** 2\
**Last updated:** [November 6, 2026, 6:41am UTC](https://discourse.mc-stan.org/t/log-student-t-comparing-differences-in-scale/41729 "2026-11-06T06:41:04Z")

</div>

I am doing a log student t distribution. All nu values are above 2 so both mean and variance exist. I want to compare the log sigmas between groups, so taking the difference in the posteriors of log sigma\_group1 - log s…

---

## [Online: Seminal Ideas & Controversies in Statistics with Roderick Little, Nov 3-4 (US$347, students US$195)](https://discourse.mc-stan.org/t/online-seminal-ideas-controversies-in-statistics-with-roderick-little-nov-3-4-us-347-students-us-195/41706)

<div class="topic-metadata">

**Author:** [@Michael\_Zyphur](https://discourse.mc-stan.org/u/Michael_Zyphur)\
**Replies:** 2\
**Last updated:** [November 6, 2026, 2:29am UTC](https://discourse.mc-stan.org/t/online-seminal-ideas-controversies-in-statistics-with-roderick-little-nov-3-4-us-347-students-us-195/41706 "2026-11-06T02:29:49Z")

</div>

Hello everyone I’m sharing an upcoming Instats seminar, Seminal Ideas & Controversies in Statistics: A Short Course, led by Roderick Little from the Department of Biostatistics at the University of Michigan. The course…

---

## [Sampling Prandtl–Ishlinskii hysteresis parameters in a small ODE model: most fits fail convergence checks](https://discourse.mc-stan.org/t/sampling-prandtl-ishlinskii-hysteresis-parameters-in-a-small-ode-model-most-fits-fail-convergence-checks/41689)

<div class="topic-metadata">

**Author:** [@Tanner\_Overby](https://discourse.mc-stan.org/u/Tanner_Overby)\
**Replies:** 2\
**Last updated:** [November 5, 2026, 7:57pm UTC](https://discourse.mc-stan.org/t/sampling-prandtl-ishlinskii-hysteresis-parameters-in-a-small-ode-model-most-fits-fail-convergence-checks/41689 "2026-11-05T19:57:54Z")

</div>

I’m fitting a small system-identification model: a mass–spring–damper m\\\\ddot x + c\\\\dot x + kx = H\\\[u\\\](t-d), observed with Gaussian noise \\\\sigma, where d \\\\in \\\\{0,1,2,3\\\\} is a discrete input delay. H is a Prandtl–Is…

---

## [Monthly language dev meeting](https://discourse.mc-stan.org/t/monthly-language-dev-meeting/24161)

<div class="topic-metadata">

**Author:** [@Bob\_Carpenter](https://discourse.mc-stan.org/u/Bob_Carpenter)\
**Replies:** 59\
**Last updated:** [November 5, 2026, 7:53pm UTC](https://discourse.mc-stan.org/t/monthly-language-dev-meeting/24161 "2026-11-05T19:53:41Z")

</div>

The monthly language dev meeting will be held on the first Thursday of the month, 10 am New York time That’s 1 hour before the regular Stan meeting. Anyone interested in the language or compiler is welcome Please let…

---

## [How can I use the same function call to sample from posterior when data exists and only sample from prior when not?](https://discourse.mc-stan.org/t/how-can-i-use-the-same-function-call-to-sample-from-posterior-when-data-exists-and-only-sample-from-prior-when-not/41685)

<div class="topic-metadata">

**Author:** [@ischmidt20](https://discourse.mc-stan.org/u/ischmidt20)\
**Replies:** 11\
**Last updated:** [November 5, 2026, 7:27pm UTC](https://discourse.mc-stan.org/t/how-can-i-use-the-same-function-call-to-sample-from-posterior-when-data-exists-and-only-sample-from-prior-when-not/41685 "2026-11-05T19:27:37Z")

</div>

I have a brms model where sometimes there is no data, in which case I want brms to sample from the prior just as it normally would the posterior. Previously, I had code like this: cond \<- ... if (sum(cond) == 0) { s…

---

## [Open data and brms code for soil carbon spectroscopy prediction](https://discourse.mc-stan.org/t/open-data-and-brms-code-for-soil-carbon-spectroscopy-prediction/41667)

<div class="topic-metadata">

**Author:** [@potash](https://discourse.mc-stan.org/u/potash)\
**Replies:** 19\
**Last updated:** [November 5, 2026, 7:04pm UTC](https://discourse.mc-stan.org/t/open-data-and-brms-code-for-soil-carbon-spectroscopy-prediction/41667 "2026-11-05T19:04:04Z")

</div>

We just published a paper in the European Journal of Soil Science using Stan to fit a spectroscopy prediction model. Code and data using brms and targets is here. In this problem the predictor is a spectroscopy scan, e.…

---

## [Should I change intercept priors when using sum coding?](https://discourse.mc-stan.org/t/should-i-change-intercept-priors-when-using-sum-coding/41745)

<div class="topic-metadata">

**Author:** [@bertiebear](https://discourse.mc-stan.org/u/bertiebear)\
**Replies:** 6\
**Last updated:** [November 4, 2026, 8:37pm UTC](https://discourse.mc-stan.org/t/should-i-change-intercept-priors-when-using-sum-coding/41745 "2026-11-04T20:37:33Z")

</div>

Hello everyone, I’ve been learning Bayesian statistics with brms for a while now, and I’ve used Bayesian linear regression in some cases. My programme (Master’s in Public Health) doesn’t deal with Bayesian statistics at …

---

## [CmdStanPy 1.3.2 Released](https://discourse.mc-stan.org/t/cmdstanpy-1-3-2-released/41748)

<div class="topic-metadata">

**Author:** [@WardBrian](https://discourse.mc-stan.org/u/WardBrian)\
**Replies:** 0\
**Last updated:** [November 3, 2026, 6:58pm UTC](https://discourse.mc-stan.org/t/cmdstanpy-1-3-2-released/41748 "2026-11-03T18:58:27Z")

</div>

https://pypi.org/project/cmdstanpy/1.3.2/ This patch release primarily exists for Windows users, as the install\_cxx\_toolchain function will not work on the previous release any longer due to a URL change by CRAN. The o…

---

## [Stan, stanr, and brms running client-side in the browser via webR](https://discourse.mc-stan.org/t/stan-stanr-and-brms-running-client-side-in-the-browser-via-webr/41549)

<div class="topic-metadata">

**Author:** [@StaffanBetner](https://discourse.mc-stan.org/u/StaffanBetner)\
**Replies:** 12\
**Last updated:** [November 2, 2026, 8:13am UTC](https://discourse.mc-stan.org/t/stan-stanr-and-brms-running-client-side-in-the-browser-via-webr/41549 "2026-11-02T08:13:15Z")

</div>

Hi all, I’ve been experimenting with running Stan inside webR and wanted to share a working proof-of-concept. Thanks to @seantalts’ work on stanli (the Stan interpreter/runtime) and @andrjohns’ work on stanr and his st…

---

## [A "squashed" normal distribution](https://discourse.mc-stan.org/t/a-squashed-normal-distribution/41655)

<div class="topic-metadata">

**Author:** [@maxgotts](https://discourse.mc-stan.org/u/maxgotts)\
**Replies:** 10\
**Last updated:** [November 2, 2026, 6:44am UTC](https://discourse.mc-stan.org/t/a-squashed-normal-distribution/41655 "2026-11-02T06:44:11Z")

</div>

I often find myself trying to fit a normal distribution that is skewed. Not a “skewed normal distribution,” but a normal distribution with one side cut to nearly zero. I’ve even gone as far as trying to make a custom log…

---

## [JuliaBayes first community meeting](https://discourse.mc-stan.org/t/juliabayes-first-community-meeting/41708)

<div class="topic-metadata">

**Author:** [@Peter\_Thestrup\_Waade](https://discourse.mc-stan.org/u/Peter_Thestrup_Waade)\
**Replies:** 3\
**Last updated:** [November 1, 2026, 2:57pm UTC](https://discourse.mc-stan.org/t/juliabayes-first-community-meeting/41708 "2026-11-01T14:57:31Z")

</div>

I am posting this here, in case it is relevant for those of the Stan community who are active in Julia. I hope it is an appropriate post; otherwise, I of course apologise. The young JuliaBayes organisation is having its…

---

## [Using an R2D2-style prior for the ICC (brms/Stan)?](https://discourse.mc-stan.org/t/using-an-r2d2-style-prior-for-the-icc-brms-stan/41686)

<div class="topic-metadata">

**Author:** [@rbcavanaugh](https://discourse.mc-stan.org/u/rbcavanaugh)\
**Replies:** 6\
**Last updated:** [October 30, 2026, 1:41pm UTC](https://discourse.mc-stan.org/t/using-an-r2d2-style-prior-for-the-icc-brms-stan/41686 "2026-10-30T13:41:20Z")

</div>

In a frequentist framework, the ICC (the proportion of true-score variance) for test-retest or rater reliability comes can be estimated form a mixed model in lme4: fit y ~ 1 + (1 | subject) + (1 | rater) and take the sub…

---

## [New Paper: Proximal R2 Priors for Structured Variance Allocation](https://discourse.mc-stan.org/t/new-paper-proximal-r2-priors-for-structured-variance-allocation/41730)

<div class="topic-metadata">

**Author:** [@davkoh](https://discourse.mc-stan.org/u/davkoh)\
**Replies:** 0\
**Last updated:** [October 30, 2026, 9:33am UTC](https://discourse.mc-stan.org/t/new-paper-proximal-r2-priors-for-structured-variance-allocation/41730 "2026-10-30T09:33:17Z")

</div>

Hi everyone, We (@javier.aguilar , @eyanchenko , Shonosuke Sugasawa, Kaoru Irie, @avehtari , and @paul.buerkner ) have a new preprint on incorporating structural domain knowledge—such as heredity between main effects…

---

## [Submission: Case study on probabilistic knowledge structures](https://discourse.mc-stan.org/t/submission-case-study-on-probabilistic-knowledge-structures/41611)

<div class="topic-metadata">

**Author:** [@Florian\_Wickelmaier](https://discourse.mc-stan.org/u/Florian_Wickelmaier)\
**Replies:** 8\
**Last updated:** [October 29, 2026, 4:46pm UTC](https://discourse.mc-stan.org/t/submission-case-study-on-probabilistic-knowledge-structures/41611 "2026-10-29T16:46:32Z")

</div>

I would like to submit a case study on probabilistic knowledge structures: Knowledge structure theory is a field in psychometrics that seeks to provide procedures for the effective diagnosis of the knowledge state of…

---

## [Initialization failure in negative-binomial model with exact and right-censored likelihood contributions](https://discourse.mc-stan.org/t/initialization-failure-in-negative-binomial-model-with-exact-and-right-censored-likelihood-contributions/41644)

<div class="topic-metadata">

**Author:** [@arumadri](https://discourse.mc-stan.org/u/arumadri)\
**Replies:** 7\
**Last updated:** [October 28, 2026, 3:16pm UTC](https://discourse.mc-stan.org/t/initialization-failure-in-negative-binomial-model-with-exact-and-right-censored-likelihood-contributions/41644 "2026-10-28T15:16:55Z")

</div>

I’m trying to fit a large spatial-temporal Bayesian model with close to 1,700 areas across 10 years in Stan using a negative-binomial model with exact and right-censored likelihood contributions. Predictors include meter…

---

## [CmdStanR 1.0 release candidate is now available](https://discourse.mc-stan.org/t/cmdstanr-1-0-release-candidate-is-now-available/41668)

<div class="topic-metadata">

**Author:** [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Replies:** 2\
**Last updated:** [October 27, 2026, 10:31pm UTC](https://discourse.mc-stan.org/t/cmdstanr-1-0-release-candidate-is-now-available/41668 "2026-10-27T22:31:20Z")

</div>

I’m happy to announce that a release candidate for CmdStanR 1.0 is ready and available for testing! This will be by far the biggest release since the initial release of the package. One of the main changes is to how mode…

---

## [How do deal with non-plausible steady state in ODE](https://discourse.mc-stan.org/t/how-do-deal-with-non-plausible-steady-state-in-ode/41691)

<div class="topic-metadata">

**Author:** [@emil\_frej](https://discourse.mc-stan.org/u/emil_frej)\
**Replies:** 5\
**Last updated:** [October 27, 2026, 8:11pm UTC](https://discourse.mc-stan.org/t/how-do-deal-with-non-plausible-steady-state-in-ode/41691 "2026-10-27T20:11:33Z")

</div>

I’m working on a model of prostate cancer for which the data often pushes posteriors toward results that we are pretty confident are wrong. I’m hoping someone has input on what a principled way to deal with this situatio…

---

## [Comparing stan backend to Julia / native cpp (ctsem, continuous time nonlinear state space modelling)](https://discourse.mc-stan.org/t/comparing-stan-backend-to-julia-native-cpp-ctsem-continuous-time-nonlinear-state-space-modelling/41545)

<div class="topic-metadata">

**Author:** [@Charles\_Driver](https://discourse.mc-stan.org/u/Charles_Driver)\
**Replies:** 18\
**Last updated:** [October 27, 2026, 8:40am UTC](https://discourse.mc-stan.org/t/comparing-stan-backend-to-julia-native-cpp-ctsem-continuous-time-nonlinear-state-space-modelling/41545 "2026-10-27T08:40:35Z")

</div>

Just thought it might interest some here – I’m migrating the ctsem software GitHub - cdriveraus/ctsem: Hierarchical continuous time state space modelling · GitHub (now with GUI for anyone really curious! GitHub - cdriver…

---

## [Ggdist::marginalize\_lkjcorr() not working as intended](https://discourse.mc-stan.org/t/ggdist-marginalize-lkjcorr-not-working-as-intended/41658)

<div class="topic-metadata">

**Author:** [@blokeman](https://discourse.mc-stan.org/u/blokeman)\
**Replies:** 4\
**Last updated:** [October 20, 2026, 9:30pm UTC](https://discourse.mc-stan.org/t/ggdist-marginalize-lkjcorr-not-working-as-intended/41658 "2026-10-20T21:30:20Z")

</div>

I can’t visualize the lkj priors of my correlation parameters because I can’t find how to convert the lkj\_corr\_cholesky(eta) priors into .dist objects that stat\_slabinterval() would understand. The marginalize\_lkjcorr() …

---

## [Equivalence between lkj\_corr\_lpdf(matrix L | eta = 1) and uniform prior on cholesky\_factor\_corr\[n\] L;](https://discourse.mc-stan.org/t/equivalence-between-lkj-corr-lpdf-matrix-l-eta-1-and-uniform-prior-on-cholesky-factor-corr-n-l/41660)

<div class="topic-metadata">

**Author:** [@PaulVBell](https://discourse.mc-stan.org/u/PaulVBell)\
**Replies:** 10\
**Last updated:** [October 20, 2026, 7:43pm UTC](https://discourse.mc-stan.org/t/equivalence-between-lkj-corr-lpdf-matrix-l-eta-1-and-uniform-prior-on-cholesky-factor-corr-n-l/41660 "2026-10-20T19:43:34Z")

</div>

Hi folks, I have a quick question regarding the LKJ prior. When using \\eta = 1 is: parameters { cholesky\_factor\_corr\[n\] L; } model { target+= lkj\_corr\_lpdf(L | eta = 1); } Equivalent to no prior on L: parame…

---

## [Bmm 1.4.1: signal detection and MPT models on CRAN](https://discourse.mc-stan.org/t/bmm-1-4-1-signal-detection-and-mpt-models-on-cran/41683)

<div class="topic-metadata">

**Author:** [@g.frischkorn](https://discourse.mc-stan.org/u/g.frischkorn)\
**Replies:** 2\
**Last updated:** [October 19, 2026, 6:32pm UTC](https://discourse.mc-stan.org/t/bmm-1-4-1-signal-detection-and-mpt-models-on-cran/41683 "2026-10-19T18:32:29Z")

</div>

bmm (Bayesian Measurement Modeling) fits hierarchical measurement models of cognition through brms and Stan. Version 1.4.1 adds signal detection theory models for yes/no, m-AFC, ranking, confidence-rating (with dual-proc…

---

## [Saving posterior in a binary format to overcome reading overflows for huge generated quantities? Anything close to pdocution grade?](https://discourse.mc-stan.org/t/saving-posterior-in-a-binary-format-to-overcome-reading-overflows-for-huge-generated-quantities-anything-close-to-pdocution-grade/41661)

<div class="topic-metadata">

**Author:** [@notastudent](https://discourse.mc-stan.org/u/notastudent)\
**Replies:** 3\
**Last updated:** [October 18, 2026, 8:34pm UTC](https://discourse.mc-stan.org/t/saving-posterior-in-a-binary-format-to-overcome-reading-overflows-for-huge-generated-quantities-anything-close-to-pdocution-grade/41661 "2026-10-18T20:34:55Z")

</div>

Here is the inconvenience I ran into lately: I run a proprietary ODE chemical reaction network. So my output are multiresponses. Each draw of my generated quantities have 3 arrays of \[5k, 4, 4\] .csv files are huge to …

---

## [Discarding chains when Rhat is high](https://discourse.mc-stan.org/t/discarding-chains-when-rhat-is-high/41657)

<div class="topic-metadata">

**Author:** [@emil\_frej](https://discourse.mc-stan.org/u/emil_frej)\
**Replies:** 2\
**Last updated:** [October 12, 2026, 7:53pm UTC](https://discourse.mc-stan.org/t/discarding-chains-when-rhat-is-high/41657 "2026-10-12T19:53:22Z")

</div>

Hi, I recently found a preprint that implements a model I’ve been working on implementing in Stan. The authors say they discarded fits when R-hat was high and kept restarting the fitting procedure until R-hat was lower.…

[Next page](https://discourse.mc-stan.org/latest.md?page=1)
