Questions tagged [brms]
97 questions
1
vote
1 answer
rstan and brms cause R and RStudio session abort
rstan and brms cause r and rstudio session abort. Even re-installation of rstan and brms cause the error.
sessionInfo()
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)
Matrix…

MYaseen208
- 22,666
- 37
- 165
- 309
1
vote
0 answers
Specifying an informative prior in a simple brms model
I am trying to understand how to specify (implement) an informed prior with brms in R. For example, a simple linear mixed effect model like:
DV ~ F1 * F2 + (1|Participant)
F1 and F2 are both two-level factors. I am only interested to test if one…

striatum
- 1,428
- 3
- 14
- 31
1
vote
0 answers
Threading in BRMS - how many threads/cores should I use?
I currently have ~500 nested mixed-effects models to run, and one model takes ~2-3 hours to run using between-chain parallelization. However, I have access to a 64 core machine, thus I am looking to decrease the run time for my models using…

Biolerback23
- 11
- 2
1
vote
1 answer
Extracting draws from posterior after using emmeans and hpd.summary
I have a dataset from participants that provided liking ratings (on a scale from 0-100) of stimuli associated with rewards of different magnitudes (factor pval, with levels small/medium/large) and delay (factor time, with levels delayed/immediate).…

Floor
- 13
- 3
1
vote
0 answers
Using emmeans with brms
I regularly use emmeans to calculate custom contrasts scross a wide range of statistical models. One of its strengths is its versatility: it is compatible with a huge range of packages. I have recently discovered that emmeans is compatible with the…

llewmills
- 2,959
- 3
- 31
- 58
1
vote
1 answer
Error: All list elements must be lists themselves: Error in using spread_draws function in tidybayes
In playing around with the tidybayes package (I replicated the data from the code simulated in the vignette: http://mjskay.github.io/tidybayes/articles/tidybayes.html), I continue to stumble onto the error: Error: All list elements must be lists…

Mason Wirtz
- 21
- 2
1
vote
0 answers
Extracting random effect using ranef() in brms package
I am managing the result of random effects using ranef() in brms packages.
bmodel<- brm(pop ~ RDB2000pop + Temperature2003 + Population2003 +
(1+RDB2000pop+Temperature2003+Population2003 |species_id),
data …

marie
- 315
- 1
- 9
1
vote
1 answer
Linear regression with both x and y errors in package brms
I am trying to run linear regressions on my data to work out the rate of sea-level change. However, a simple linear regression will not work as I have both x (Age) and y (RSL) errors for example:
RSL
RSL error
Age
Age…

Sophie Williams
- 338
- 1
- 3
- 14
1
vote
0 answers
Differing posterior predictive checks for logistic binomial model with and without addition-terms
I’m fitting a logistic binomial model where the response variable is the sum of how many times a target picture was looked at during a certain time period out of how many times all pictures were looked at during that period (sum | trials(N) ~ x).…

kathi
- 11
- 2
1
vote
0 answers
New to Bayesian stats, using ordered categorical data, how to interpret/check model?
I am trying to fit a model to my ordered categorical data of rating (1,2,3) and group (1,2,3). Other predictors are age (18-23, 24-30), continent, and use of medication (y/n). I have been using the helpful tutorial:…

Gabriella
- 421
- 3
- 11
1
vote
1 answer
Do you need Xcode to run the rstan or brms packages on RStudio MacOS?
Do you need Xcode to run the rstan and/or brms packages on RStudio MacOS?
I had to install Xcode to get the rstan and or brms packages on RStudio MacOS. Do I need to keep Xcode on my harddrive to keep the packages work. I don't want to keep it if it…

Mel
- 510
- 3
- 10
1
vote
1 answer
Average result for brms conditional effects in R
I'm using conditional_effects from the library brms and I saw that emmeans average the result over the levels of different factor when conditional_effects select the first one.
So, how could I do the same thing with conditional effects ?
Thanks

mountaingoat19
- 21
- 2
1
vote
1 answer
Extract data from conditional effect
I'm using R and I would like to extract data from conditional effect
rb15 <- brm(X ~ 1 + Y , data = CB, family=sratio("logit"), cores = 4)
amc <- conditional_effects(rb15, categorical = TRUE)
I would like it to be in a data frame with row like X,Y…

mountaingoat19
- 21
- 2
0
votes
0 answers
Specification of an Bayesian Zero-One-Inflated Beta Regression
I have a large dataset in which people tuned sliders corresponding to features from -1 to 1. The data distribution has large amounts of data at the extrema so I decided to model a zero-one-inflated beta regression using brms.
I want to predict the…

NAD63
- 1
- 1
0
votes
0 answers
Multivariate GAMM in brms (R/Stan)
I have a GAMM that's multivariate. It's also a hurdle_gamma() model due to the presence of 0's throughout the dataset. I continuously get errors when attempting to run the model and I'm not sure where they are coming from.
model <- bf(mvbind(var1,…

megsruppUNBC
- 25
- 4