Questions tagged [brms]
brms is an R package interfacing stan for Bayesian analysis
42 questions with no upvoted or accepted answers
3
votes
0
answers
345
views
Differing posterior predictive checks for logistic binomial model with and without addition-terms
[apologies for cross posting]
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 ...
3
votes
1
answer
645
views
How to get around to "Argument 'coef' may not be specified when using boundaries."?
I have a model, the brms code is given below. It is a system of equations (I am estimating demand for two categories of goods). Economic theory tells me that the ...
2
votes
1
answer
88
views
Can I Use the loo function to help me choose between a Poisson and Bernouilli distribution in bayesian
I have two models exactly similar, but I’m using a Poisson distribution for one and a Bernoulli distribution for the other. Can I trust the information coming out of loo to help me choose?
The ...
2
votes
0
answers
41
views
Method for Predicting Longitudinal Diagnostic Switching and Instability
Context
Within my field (neuropsychology), there is a well-known issue for some individuals to have very unstable diagnoses overtime. My area of interest is in dementia where the ideal diagnostic ...
1
vote
0
answers
53
views
Repeatability (ICC) for negative binomial and beta models
I am estimating repeatability (a type of intra-class correlation) from mixed models with negative binomial and beta distributions and want to confirm that the variance transformations to obtain ...
1
vote
1
answer
109
views
How to model changes in circular mean and concentration based on predictors?
I want to fit a mixed model to determine a treatment's effect on a circular response variable (the variable is an angle measured in radians). I want to know how treatment changes both the mu (mean) ...
1
vote
0
answers
70
views
Determining optimal response distribution for modeling growth curves of NFL players’ fantasy football points in brms
I'm trying to model age-related trajectories (i.e., growth curves) of National Football League (NFL) players' fantasy points using a mixed model in R using ...
1
vote
0
answers
75
views
Bootstrapping spline construction
I wonder if we should bootstrap the construction of smoothing splines?
I am modelling a logistic model with smoothing term in brms (and mgcv). When performing Bootstrap, a normal replaced resampling ...
1
vote
0
answers
68
views
Multilevel model where skew of random effect depends on an independent variable
I am trying to construct a model where the skew of the distribution of a random effect changes with an independent variable. I'd eventually like to fit this using ...
1
vote
0
answers
64
views
Inconsistent posterior from hierarchical survival model
I asked about this question on Stan forum but no one replied so dual posting here. I'd really appreciate some insight, as I'm completely stuck.
I’m trying to do hierarchical survival modeling using ...
1
vote
0
answers
104
views
How to improve bayesian logistic regression model with priors
I'm trying to fit a bayesian logistic regression model to calculate the expected goals (xG) of certain shootings data in football. My model has some simple features where I first fit a model with ...
1
vote
0
answers
62
views
Is it possible to estimate effects using Bayesian modelling after matching?
I am following [Greifer 2023][1] to estimate the effect size after (genetic) matching, where I am using bootstrapping to estimate the confidence intervals. Since I have a hierarchical setup with ...
1
vote
1
answer
414
views
Interpreting Coefficients of brms Bernoulli family model
I am struggling with interpreting model results from a brm() model. The first result uses scaled and centered data with command scale(df$column, scale = TRUE, center = TRUE).
...
1
vote
0
answers
58
views
Proper analysis of completely crossed design with subjects and items as random effects (brms)
I have the following study design:
stimuli: 240 pictures:
6 pictures of 40 students each
(each student fixated one of six points and during each fixation one picture was taken)
each stimulus was ...
1
vote
2
answers
99
views
Incorporating neighboring years in multilevel model, estimated in Stan using brms
I am estimating a multilevel model in Stan, using the brms package. Specifically, I am estimating a model of the following form:
m1 <- brm(y ~ 1 + (1 | year))
...