if (FALSE) {
# model with 'treat' as predictor
fit1 <- brm(rating ~ treat + period + carry, data = inhaler)
summary(fit1)
# model without 'treat' as predictor
fit2 <- brm(rating ~ period + carry, data = inhaler)
summary(fit2)
# obtain Akaike weights based on the WAIC
model_weights(fit1, fit2, weights = "waic")
}
Run the code above in your browser using DataLab