Questions tagged [brms]

97 questions
0
votes
0 answers

Sourcing Informative Priors from an already conducted Empirical Study in brms package in R

I am conducting two studies (with 15 participants) and my study is based on two already conducted studies with a very similar objective and method. One of the studies contain only the results, and one of them have data available online. This is on…
0
votes
0 answers

Rtools error in compileCode when using brms package

My supervisor told me to run the brms package to model my data using the brm() function. When I tried to do that, I had to install Rtools43. After that, when I tried to run the code the following error occured: Error in compileCode(f, code, language…
0
votes
0 answers

Which "family" do I put in my data using brm function?

I have a dataset for a logistic regression in brm. My data consists in a column of presence of visual display in frogs and the second column describes their activity period (0=night, 1=day, 2=both). Below, an example of my dataset: visdisp…
0
votes
0 answers

How can I derive "whole factor" significance in a brms model with multiple factors?

I am running a simple model in brms with default priors using two multi-level factors (community type, and a quantile grouping). rate_temp_comm <-brms::brm(rate ~ Community + quantilegroup + (1|Site), data = rates, family = gaussian, chains =…
0
votes
0 answers

How/is it possible to obtain intermediate models using brm function in Bayesian modeling studies

I'm doing a research study about bayesian modelling in R. I'm using the brm function of brms package. Below is a part of my code where I obtain my model (chains=4, iter=2000). However I have a doubt about the functionalities of the brm function. I…
Zbranco
  • 1
  • 2
0
votes
0 answers

Preventing Rule Retriggering in Drools or Alternative Technologies

I'm currently using Drools in a software application to validate a significant number of data objects. The creation process involves multiple steps, and at each step, Drools rulesets are employed to validate the objects being created. These…
0
votes
0 answers

Tidybayes 'add_epred_draws()' function to massive data

I have fit an ordinal regression model thorugh brms on a large dataset. When adding the draws thorugh add_epred_draws() R will crash. There are 850,000 observations in the dataframe after group_by() and data_grid() functions ready for the draws to…
scigibbo
  • 1
  • 1
0
votes
0 answers

What is the Variance at individual level with a brms model using the binomial family argument?

I am using the brms package to define my multilevel model. The outcome is either "0" or "1", therefore I am using as a family argument "binomial()". In the output of the model I don't find an output about the family specific parameters. The problem…
0
votes
0 answers

How do I fix this error with BRMS, Compilers, and Build tools

I was running these models fine before I updated R and everything broke. Everytime I attempt to run the model now a popup window appears saying "Building R package from source requires installation of additional build tools. Do you want to install…
0
votes
0 answers

brms package in R producing nullptr_t error with Clang when compiling C++ on macOS Ventura

I'm running a Bayesian ordinal regression model using the brms package in R on a macOS Ventura 13.4 system with arm64 architecture. My Xcode and command line tools version is 14.3.1 and my Clang version is 14.0.3. My code is as…
Mohamed Yusuf
  • 390
  • 1
  • 11
0
votes
1 answer

How to plot default plots from brms with ggplot?

I have a bayesian model made using brms: height_nb <- brms::brm(height_mm ~ dist + altitude + (1|trans.pair), seed = 010123, data = dat, family = negbinomial(link = "log", link_shape = "log"), # fitting…
wilberox
  • 193
  • 10
0
votes
0 answers

How to calculate predicted values from a brms location-scale analysis in R?

I am currently working on a study in which we estimate the relationship between a country-level variable (variable 'SSI1Z') and the association between an individual-level independent variable ('edu_lvl') and dependent variable…
0
votes
0 answers

how to calculate heterogeneity from models generated with brm() function

I aim to calculate total heterogeneity and heterogeneity arising from each random factor from models generated with brm() function. Example of the model: model <- brm(formula = r | se(sqrt(Vr)) ~ 1 + ( 1|STUDY_ID.1) + (1|INDEX) + (1|TREE_T) +…
bfrt
  • 61
  • 1
0
votes
0 answers

Models from brms package is not compiling

I am currently trying to use the "brms" package to run hierarchical models. Unfortunately, when I try to compile my model I get the following error message: make cmd is make -f "C:/PROGRA~1/R/R-43~1.0/etc/x64/Makeconf" -f…
0
votes
0 answers

Non-linear Discrete von Bertalanffy Growth Function in BRMS

I am wondering if anyone has any suggestions for how I could go about creating a non-linear model for discrete growth in brms. A colleague (much wiser than I) has simulated the data and it appears to function well, I just cannot find a way to…