# \#brms

**URL:** https://discourse.mc-stan.org/tag/brms/173.md?match_all_tags=true&page=1&tags%5B%5D=brms

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

**Page:** 2

---

## [Looking for Guidance on Using Cumulative models to understand disease progression in wildlife images from camera traps](https://discourse.mc-stan.org/t/looking-for-guidance-on-using-cumulative-models-to-understand-disease-progression-in-wildlife-images-from-camera-traps/41042)

<div class="topic-metadata">

**Author:** [@Nina\_Kappel](https://discourse.mc-stan.org/u/Nina_Kappel)\
**Replies:** 1\
**Last updated:** [April 10, 2026, 8:32pm UTC](https://discourse.mc-stan.org/t/looking-for-guidance-on-using-cumulative-models-to-understand-disease-progression-in-wildlife-images-from-camera-traps/41042 "2026-04-10T20:32:58Z")

</div>

Please share your Stan program and accompanying data if possible. Hello all, I am a master’s student working on a camera trapping project trying to see if we can use cameras to model disease progression in moose. If yo…

---

## [Autocorrelation Residual Diagnostics for brms](https://discourse.mc-stan.org/t/autocorrelation-residual-diagnostics-for-brms/41015)

<div class="topic-metadata">

**Author:** [@Hunter24](https://discourse.mc-stan.org/u/Hunter24)\
**Replies:** 3\
**Last updated:** [April 10, 2026, 6:13pm UTC](https://discourse.mc-stan.org/t/autocorrelation-residual-diagnostics-for-brms/41015 "2026-04-10T18:13:58Z")

</div>

I am using a Bernoulli distribution for my network data with a resolution of 10 minutes. So I believe I need to account for autocorrelation. Since their are gaps in my data I would need to use a gaussian process. My que…

---

## [Brmspy: Python-first access to brms (cmdstanr backend, ArviZ output)](https://discourse.mc-stan.org/t/brmspy-python-first-access-to-brms-cmdstanr-backend-arviz-output/40685)

<div class="topic-metadata">

**Author:** [@Braffolk](https://discourse.mc-stan.org/u/Braffolk)\
**Replies:** 10\
**Last updated:** [March 27, 2026, 1:27pm UTC](https://discourse.mc-stan.org/t/brmspy-python-first-access-to-brms-cmdstanr-backend-arviz-output/40685 "2026-03-27T13:27:52Z")

</div>

Hi all. I wanted to share a Python interface I’ve been building for brms that may be useful for anyone who works across both R and Python environments. brmspy provides a Python-side API for fitting brms models via cmdst…

---

## [Hierarchical graded IRT](https://discourse.mc-stan.org/t/hierarchical-graded-irt/23606)

<div class="topic-metadata">

**Author:** [@saschagobel](https://discourse.mc-stan.org/u/saschagobel)\
**Replies:** 9\
**Last updated:** [March 25, 2026, 11:54am UTC](https://discourse.mc-stan.org/t/hierarchical-graded-irt/23606 "2026-03-25T11:54:13Z")

</div>

Hi all, Is there a way to fit a hierarchical graded IRT model with brms where both the mean and the variance of the ability parameter may depend on covariates? The goal here is to get subgroup-specific (defined by covar…

---

## [Custom distance matrix for GP terms in brms](https://discourse.mc-stan.org/t/custom-distance-matrix-for-gp-terms-in-brms/40982)

<div class="topic-metadata">

**Author:** [@anmiri](https://discourse.mc-stan.org/u/anmiri)\
**Replies:** 3\
**Last updated:** [March 23, 2026, 2:19pm UTC](https://discourse.mc-stan.org/t/custom-distance-matrix-for-gp-terms-in-brms/40982 "2026-03-23T14:19:00Z")

</div>

Hello all, There is a growing interest in regression models with a latent Gaussian process in my field, and I was really happy to see the addition of more covariance kernels in brms, particularly ones which are useful f…

---

## [What is the difference between Intercept and b\_Intercept?](https://discourse.mc-stan.org/t/what-is-the-difference-between-intercept-and-b-intercept/20423)

<div class="topic-metadata">

**Author:** [@BrittaL](https://discourse.mc-stan.org/u/BrittaL)\
**Replies:** 8\
**Last updated:** [March 8, 2026, 10:07pm UTC](https://discourse.mc-stan.org/t/what-is-the-difference-between-intercept-and-b-intercept/20423 "2026-03-08T22:07:56Z")

</div>

I noticed that when I set save\_pars = save\_pars(all=TRUE) there is a parameter called b\_Intercept and one called Intercept in my model. Intercept does not show up in the summary, but in the $fit. When not all parameter…

---

## [Covariate impact on the ratio of dependent variables in BRMS multivariate model](https://discourse.mc-stan.org/t/covariate-impact-on-the-ratio-of-dependent-variables-in-brms-multivariate-model/40811)

<div class="topic-metadata">

**Author:** [@nswartwo](https://discourse.mc-stan.org/u/nswartwo)\
**Replies:** 3\
**Last updated:** [March 6, 2026, 11:10pm UTC](https://discourse.mc-stan.org/t/covariate-impact-on-the-ratio-of-dependent-variables-in-brms-multivariate-model/40811 "2026-03-06T23:10:47Z")

</div>

I am using a multivariate specification in brms to model two correlated outcomes, (y\_1, y\_2) jointly. However, the outcome of interest is actually y\_1/y\_2, which is calculated after model run. I am interested in estimati…

---

## [Joint Modeling: Propogating uncertainty into predictors](https://discourse.mc-stan.org/t/joint-modeling-propogating-uncertainty-into-predictors/40937)

<div class="topic-metadata">

**Author:** [@Hunter24](https://discourse.mc-stan.org/u/Hunter24)\
**Replies:** 22\
**Last updated:** [February 28, 2026, 11:12pm UTC](https://discourse.mc-stan.org/t/joint-modeling-propogating-uncertainty-into-predictors/40937 "2026-02-28T23:12:51Z")

</div>

Hi, I am wondering whether it is possible to fit a joint model in which one response variable is first modeled to estimate its latent value and associated uncertainty, and then this latent variable is used as a predictor…

---

## [Comparing Gaussian, gamma, and lognormal versions of regression model](https://discourse.mc-stan.org/t/comparing-gaussian-gamma-and-lognormal-versions-of-regression-model/40941)

<div class="topic-metadata">

**Author:** [@llewmills](https://discourse.mc-stan.org/u/llewmills)\
**Replies:** 4\
**Last updated:** [February 24, 2026, 3:26am UTC](https://discourse.mc-stan.org/t/comparing-gaussian-gamma-and-lognormal-versions-of-regression-model/40941 "2026-02-24T03:26:51Z")

</div>

I am modeling the effect of a fixed factor group, a positive numeric covariate base, and a random factor site on a positive numeric (i.e. not a count) outcome. Here is the deidentified data exemplarData.RData (3.5 KB) T…

---

## [Question: Diagnostic status used in both interaction and derived predictor — better to use split models?](https://discourse.mc-stan.org/t/question-diagnostic-status-used-in-both-interaction-and-derived-predictor-better-to-use-split-models/39831)

<div class="topic-metadata">

**Author:** [@Felix\_Requena](https://discourse.mc-stan.org/u/Felix_Requena)\
**Replies:** 2\
**Last updated:** [February 22, 2026, 12:34am UTC](https://discourse.mc-stan.org/t/question-diagnostic-status-used-in-both-interaction-and-derived-predictor-better-to-use-split-models/39831 "2026-02-22T00:34:46Z")

</div>

Hi all, I’m working on a brms model analyzing social behavior (Gregariousness, binary outcome) in a population of reptiles. Two key predictors of interest are: Disease status of the focal individual (Diagnostic: Healt…

---

## [Ornstein–Uhlenbeck correlation structure in brms](https://discourse.mc-stan.org/t/ornstein-uhlenbeck-correlation-structure-in-brms/40889)

<div class="topic-metadata">

**Author:** [@Hunter24](https://discourse.mc-stan.org/u/Hunter24)\
**Replies:** 6\
**Last updated:** [February 20, 2026, 10:09am UTC](https://discourse.mc-stan.org/t/ornstein-uhlenbeck-correlation-structure-in-brms/40889 "2026-02-20T10:09:09Z")

</div>

Hi, I am wondering how to implement Ornstein–Uhlenbeck correlation structure in brms. This is how I am doing it, but not entirely sure if accurate:(fit.ou.brms ← brm(y ~ X1 + X2 + X3 + gp(times, cov = “matern12”), dat…

---

## [Two-part mixture model on left-censored biomarker data](https://discourse.mc-stan.org/t/two-part-mixture-model-on-left-censored-biomarker-data/40899)

<div class="topic-metadata">

**Author:** [@Biomarker\_Researcher](https://discourse.mc-stan.org/u/Biomarker_Researcher)\
**Replies:** 12\
**Last updated:** [February 19, 2026, 3:39pm UTC](https://discourse.mc-stan.org/t/two-part-mixture-model-on-left-censored-biomarker-data/40899 "2026-02-19T15:39:07Z")

</div>

I am trying to model blood biomarker data collected longitudinally in a sample of patients vs. controls. There are 4 sampling timepoints, with patient data collected either at timepoint 1 or 2 (I have considered combinin…

---

## [How can I found the appropriate family to fit my data using brms?](https://discourse.mc-stan.org/t/how-can-i-found-the-appropriate-family-to-fit-my-data-using-brms/40919)

<div class="topic-metadata">

**Author:** [@dmaria](https://discourse.mc-stan.org/u/dmaria)\
**Replies:** 1\
**Last updated:** [February 11, 2026, 7:13pm UTC](https://discourse.mc-stan.org/t/how-can-i-found-the-appropriate-family-to-fit-my-data-using-brms/40919 "2026-02-11T19:13:13Z")

</div>

Hello, everyone. I have a set of data from dose-response effect (without saturation point), but I don’t know how to fit it with appropriate family. I have values that follows a log distribution, however, there are some …

---

## [Problem in multilevel (hierarchical) multinomial logistic regression (with brms)](https://discourse.mc-stan.org/t/problem-in-multilevel-hierarchical-multinomial-logistic-regression-with-brms/40882)

<div class="topic-metadata">

**Author:** [@JohnKruschke](https://discourse.mc-stan.org/u/JohnKruschke)\
**Replies:** 11\
**Last updated:** [February 3, 2026, 5:41pm UTC](https://discourse.mc-stan.org/t/problem-in-multilevel-hierarchical-multinomial-logistic-regression-with-brms/40882 "2026-02-03T17:41:08Z")

</div>

I have posted a teaser of the issue at my blog, copied below. The data The predicted variable is a categorical response, named resp with levels ‘1’, ‘2’, ‘3’, and ‘4’ (nominal labels, not numerical values). The predic…

---

## [Power analysis for ordinal phylogenetic model](https://discourse.mc-stan.org/t/power-analysis-for-ordinal-phylogenetic-model/40883)

<div class="topic-metadata">

**Author:** [@Hanz](https://discourse.mc-stan.org/u/Hanz)\
**Replies:** 1\
**Last updated:** [January 31, 2026, 6:28pm UTC](https://discourse.mc-stan.org/t/power-analysis-for-ordinal-phylogenetic-model/40883 "2026-01-31T18:28:49Z")

</div>

Hello, We were asked to provide the statistical power of our ordinal model. Initially, we did not find evidence for any effects and because the sample size is small (n = 36), the model may have low power to reveal any e…

---

## [Vector Autoregressive Structure](https://discourse.mc-stan.org/t/vector-autoregressive-structure/40862)

<div class="topic-metadata">

**Author:** [@cMiIIer](https://discourse.mc-stan.org/u/cMiIIer)\
**Replies:** 3\
**Last updated:** [January 31, 2026, 10:49am UTC](https://discourse.mc-stan.org/t/vector-autoregressive-structure/40862 "2026-01-31T10:49:22Z")

</div>

Hello! As part of my thesis, I conducted a mesocosm experiment using a community of organisms and we are curious about how the community we curated performed. As a part of it I am trying to fit each trophic level into a…

---

## [Error when loading premade priors](https://discourse.mc-stan.org/t/error-when-loading-premade-priors/40880)

<div class="topic-metadata">

**Author:** [@pnt](https://discourse.mc-stan.org/u/pnt)\
**Replies:** 0\
**Last updated:** [January 30, 2026, 11:12am UTC](https://discourse.mc-stan.org/t/error-when-loading-premade-priors/40880 "2026-01-30T11:12:36Z")

</div>

Hey, I get the following error message when running brms models with a CSC supercomputer. I am running a R script and I load the priors into the script with load(Priors.RData). Error in rbind(deparse.level, ...) : n…

---

## [Generating parameter values for a new level in multivariate model with group correlations](https://discourse.mc-stan.org/t/generating-parameter-values-for-a-new-level-in-multivariate-model-with-group-correlations/40875)

<div class="topic-metadata">

**Author:** [@amynang](https://discourse.mc-stan.org/u/amynang)\
**Replies:** 1\
**Last updated:** [January 29, 2026, 11:10am UTC](https://discourse.mc-stan.org/t/generating-parameter-values-for-a-new-level-in-multivariate-model-with-group-correlations/40875 "2026-01-29T11:10:50Z")

</div>

Suppose I have the following model: bf( y1 ~ a / (1 + exp(b\*x)), a ~ 1 + (1|p|z), b ~ 1 + (1|p|z), nl = T ) + bf( y2 ~ a / (1 + exp(b\*x)), a ~ 1 + (1|p|z), b ~ 1 + (1|p|z), …

---

## [Binomial GLMM Assumptions](https://discourse.mc-stan.org/t/binomial-glmm-assumptions/30254)

<div class="topic-metadata">

**Author:** [@Hunter24](https://discourse.mc-stan.org/u/Hunter24)\
**Replies:** 15\
**Last updated:** [January 28, 2026, 6:40pm UTC](https://discourse.mc-stan.org/t/binomial-glmm-assumptions/30254 "2026-01-28T18:40:27Z")

</div>

I am using a binomial GLMM and am confused on how to test for homoscedasticity of residuals. When I use normal difference residuals it shows heteroscedasticity, but when I use pearsons residuals it shows more of a homos…

---

## [Sampling weights in brms](https://discourse.mc-stan.org/t/sampling-weights-in-brms/40857)

<div class="topic-metadata">

**Author:** [@olga.murasova](https://discourse.mc-stan.org/u/olga.murasova)\
**Replies:** 1\
**Last updated:** [January 22, 2026, 9:31pm UTC](https://discourse.mc-stan.org/t/sampling-weights-in-brms/40857 "2026-01-22T21:31:35Z")

</div>

I am using PISA data and modelling 2-level (school+students) multinomial logistic regression using brms. PISA has complex survey design, and final sampling weights reflect different probabilities of school and student se…

---

## [Convergence issues with multivariate model in brms](https://discourse.mc-stan.org/t/convergence-issues-with-multivariate-model-in-brms/40835)

<div class="topic-metadata">

**Author:** [@sofia-pereira](https://discourse.mc-stan.org/u/sofia-pereira)\
**Replies:** 2\
**Last updated:** [January 20, 2026, 10:26am UTC](https://discourse.mc-stan.org/t/convergence-issues-with-multivariate-model-in-brms/40835 "2026-01-20T10:26:28Z")

</div>

Hello, I am new to modelling and attempting my first multivariate model in brms. I am modelling three different covarying DVs as a function of two shared predictors, though an important feature of this model is that my …

---

## [Brms: Right censored model is not converging, while a similar left censored model runs fine](https://discourse.mc-stan.org/t/brms-right-censored-model-is-not-converging-while-a-similar-left-censored-model-runs-fine/40779)

<div class="topic-metadata">

**Author:** [@Kara](https://discourse.mc-stan.org/u/Kara)\
**Replies:** 9\
**Last updated:** [January 19, 2026, 9:48am UTC](https://discourse.mc-stan.org/t/brms-right-censored-model-is-not-converging-while-a-similar-left-censored-model-runs-fine/40779 "2026-01-19T09:48:38Z")

</div>

Hello everyone and a happy new year! :) Never posted here before, but I´ll try my best. I am fitting a rather simple Bayesian linear mixed-effects model ins brms (R version 4.4.2 and brms\_2.23.0, on Win 11) I am analys…

---

## [A very short practical guide for Bayesian ordinal models in brms](https://discourse.mc-stan.org/t/a-very-short-practical-guide-for-bayesian-ordinal-models-in-brms/40814)

<div class="topic-metadata">

**Author:** [@bnicenboim](https://discourse.mc-stan.org/u/bnicenboim)\
**Replies:** 12\
**Last updated:** [January 16, 2026, 3:56pm UTC](https://discourse.mc-stan.org/t/a-very-short-practical-guide-for-bayesian-ordinal-models-in-brms/40814 "2026-01-16T15:56:29Z")

</div>

To help someone understand how to set priors for an ordinal model with a cumulative link in brms, I had to run a bunch of simulations to really get a grasp on it myself. I ended up writing a short post about it:

---

## [Non-linear hurdle model](https://discourse.mc-stan.org/t/non-linear-hurdle-model/40794)

<div class="topic-metadata">

**Author:** [@Philipp\_Doebler](https://discourse.mc-stan.org/u/Philipp_Doebler)\
**Replies:** 2\
**Last updated:** [January 13, 2026, 9:28pm UTC](https://discourse.mc-stan.org/t/non-linear-hurdle-model/40794 "2026-01-13T21:28:05Z")

</div>

I am fitting an IRT-hurdle model in brms. A version without discrimination parameters (=factor loadings) was straightforward to specify. Based on Paul’s brms-IRT paper, I am trying to extend the syntax. The idea is, that…

---

## [Exponential spatial range: metafor SPEXP rho vs brms gp lscale mismatch (other estimates match)](https://discourse.mc-stan.org/t/exponential-spatial-range-metafor-spexp-rho-vs-brms-gp-lscale-mismatch-other-estimates-match/40810)

<div class="topic-metadata">

**Author:** [@ayumi](https://discourse.mc-stan.org/u/ayumi)\
**Replies:** 0\
**Last updated:** [January 12, 2026, 3:11pm UTC](https://discourse.mc-stan.org/t/exponential-spatial-range-metafor-spexp-rho-vs-brms-gp-lscale-mismatch-other-estimates-match/40810 "2026-01-12T15:11:30Z")

</div>

Hi all, I am comparing an exponential spatial meta-analytic model fitted in metafor and brms. The overall mean effect and variance components are very similar across packages, but the spatial “range” parameter looks very…

---

## [Repeated measures logistic regression in brms producing unusual estimates](https://discourse.mc-stan.org/t/repeated-measures-logistic-regression-in-brms-producing-unusual-estimates/40789)

<div class="topic-metadata">

**Author:** [@llewmills](https://discourse.mc-stan.org/u/llewmills)\
**Replies:** 6\
**Last updated:** [January 9, 2026, 11:14pm UTC](https://discourse.mc-stan.org/t/repeated-measures-logistic-regression-in-brms-producing-unusual-estimates/40789 "2026-01-09T23:14:05Z")

</div>

I am trying to conduct a repeated measures bernoulli regression on the following data any\_11toPCUD.RData (10.2 KB) Two measurement occasions - all11 followed by pCUD of the same Yes/No outcome meetsCrit\_any for each pe…

---

## [Multivariate random-effects meta-analysis in brms accounting for different time points](https://discourse.mc-stan.org/t/multivariate-random-effects-meta-analysis-in-brms-accounting-for-different-time-points/40792)

<div class="topic-metadata">

**Author:** [@joh\_poe](https://discourse.mc-stan.org/u/joh_poe)\
**Replies:** 0\
**Last updated:** [January 7, 2026, 9:04am UTC](https://discourse.mc-stan.org/t/multivariate-random-effects-meta-analysis-in-brms-accounting-for-different-time-points/40792 "2026-01-07T09:04:14Z")

</div>

I’m drafting a protocol for a meta-analysis of outcomes extracted from randomized clinical trials (RCTs), with no individual-level patient data available. There are five clinical outcomes of interest, which will likely b…

---

## [Technical issues implementing powerscaling procedure on distribution of estimated differences](https://discourse.mc-stan.org/t/technical-issues-implementing-powerscaling-procedure-on-distribution-of-estimated-differences/40768)

<div class="topic-metadata">

**Author:** [@llewmills](https://discourse.mc-stan.org/u/llewmills)\
**Replies:** 4\
**Last updated:** [January 5, 2026, 9:19pm UTC](https://discourse.mc-stan.org/t/technical-issues-implementing-powerscaling-procedure-on-distribution-of-estimated-differences/40768 "2026-01-05T21:19:46Z")

</div>

I am having trouble implementing the procedure for powerscaling research quantities of interest outlined in Chapter 14 of @avehtari’s notebook outlining a procedure for comparing models with different outcomes. The mode…

---

## [Advice setting powerscaled priors for longitudinal betabinomial spline model](https://discourse.mc-stan.org/t/advice-setting-powerscaled-priors-for-longitudinal-betabinomial-spline-model/40732)

<div class="topic-metadata">

**Author:** [@llewmills](https://discourse.mc-stan.org/u/llewmills)\
**Replies:** 10\
**Last updated:** [December 22, 2025, 7:08pm UTC](https://discourse.mc-stan.org/t/advice-setting-powerscaled-priors-for-longitudinal-betabinomial-spline-model/40732 "2025-12-22T19:08:56Z")

</div>

I am modeling heroin use during the first year of opioid agonist treatment based on different levels of amphetamine use at start of treatment. I am using brms. Days of amphetamine use at baseline in the 28 days prior to …

---

## [Differential Abundance Analysis with a multivariate model?](https://discourse.mc-stan.org/t/differential-abundance-analysis-with-a-multivariate-model/40731)

<div class="topic-metadata">

**Author:** [@biocsmith](https://discourse.mc-stan.org/u/biocsmith)\
**Replies:** 0\
**Last updated:** [December 11, 2025, 12:05am UTC](https://discourse.mc-stan.org/t/differential-abundance-analysis-with-a-multivariate-model/40731 "2025-12-11T00:05:09Z")

</div>

Hello! I’ve been using brms a bit to model the effect of different predictors on the abundance of different microbial taxa. Previously, I was using brms\_multiple to fit the counts of each different taxa (eg. Proteobacter…

[Previous page](https://discourse.mc-stan.org/tag/brms/173.md?match_all_tags=true&tags%5B%5D=brms)

[Next page](https://discourse.mc-stan.org/tag/brms/173.md?match_all_tags=true&page=2&tags%5B%5D=brms)
