I am reading McElreath’s book on Statistical Rethinking but I am following the code in Solomon Kurz’ e-book https://bookdown.org/content/4857/ as I want to be more proficient with brms.
Kurz has the following code for the multilevel tadpoles example (code source):
b13.2 <-
brm(data = d,
family = binomial,
surv | trials(density) ~ 1 + (1 | tank),
prior = c(prior(normal(0, 1.5), class = Intercept), # alpha bar
prior(exponential(1), class = sd)), # sigma
iter = 5000, warmup = 1000, chains = 4, cores = 4,
sample_prior = "yes",
seed = 13,
file = "fits/b13.02")
However, this assumes that the distribution of the population of varying intercepts is Normally distributed with hyperparameters having priors of N(0,1.5^2) and Exp(1), respectively.
In the exercises, McElreath asks us to investigate the consequences when the population of varying intercepts instead has a cauchy distribution or a student’s t-distribtion. How do I implement this in brms? I can’t figure out what additional argument I have to specify. I assume that the default distribution of the population of varying intercepts is normal.
(Here’s a snippet of the exercise from the book, at least from the first edition:
I’m not asking about the HalfCauchy prior on \sigma but rather, the Cauchy prior on \alpha_{TANK})
Thanks!