Closed
Description
a <- seq(from = 0, to = 30)
b1 <- rbeta(length(a), 3, 1)
b2 <- rbeta(length(a), 3, 1)
d <- data.frame(id = c(a,a),
value = c(b1, b2))
mod_bayes <- suppressMessages(suppressWarnings(brms::brm(value ~ 1 + (1 | id),
data = d,
family = brms::Beta)))
icc(mod_bayes)
The sequence of internal function to compute distribution and residual variance loops back into .compute_variances()
seemingly endlessly. (Maybe not endlessly, but we are re-estimating the same updated models to get "null" models and "sigma" variance many many times as the functions loop back through the parent compute_variances()
function.) We should adjust this function to ensure we only resample each updated model 1 time.