Hello
I’m trying to run a multilevel linear model using brms package, especially when including predictors in the fixed part and only one predictor in level 2.
R takes a long time to run the conditional model and mostly not responding
May you please help me how can I get faster simulation using this package
Moreover, I have another question regarding the interpretation of the results
for icc () function
I see the between-group variance and within group variance and after calculating the ICC manually it differs from R output
ICC: 0.25 HDI 89%: [0.06 0.42]
Between-group: 0.18 HDI 89%: [0.03 0.33]
Residuals
Within-group: 0.47 HDI 89%: [0.46 0.48]
I have calculated ICC as 0.18/(0.18+0.47)= 0.277, which differs from 0.25, I’m I calculated correctly
Can you please share more details: How slow is “slow?” Can you share your code, and describe the data you are using? How many iterations and chains did you run? Are you running your chains in parallel, by selecting options(mc.cores = parallel::detectCores())?
For Slow
R takes about 20 minutes to compile the model, then chain 1 begin until 10%, then R becomes not responding even I have leave it for about 12 hours yesterday.
I am not a brms expert, but try and set your prior to normal(0,1) instead of normal(0,100) and see if it speeds up - this could definitely be one reason that it is slow.
Broad uninformative priors like normal(0,100) are generally not recommended by the community since they are putting an unreasonable amount of mass on extreme values which is rarely a justified assumption.