Hi,
How do I extract the hyperpriors in brms()? Let’s say with a hierarchical model: How to extract the values of M_{\beta} (below) which are estimated from the data:
Or with a measurement error model how to extract the estimated hyperpriors of the measurement error variable.
Many thanks,
Ilan
brms uses a non-centered parameteriztations so you specify M_beta directly in the main formula and not hierarchically. In the main formula the mean hyerparameters are just appearing as basic regression coefficients. For example in
y ~ 1 + x + (1 + x | ID)
the first x just refers to the mean effect of the xs over the IDs. See also the two main brms papers.
1 Like