wwiecek / baggr

R package for Bayesian meta-analysis models, using Stan
GNU General Public License v3.0
46 stars 12 forks source link

print correlation in mu & tau models #115

Closed wwiecek closed 8 months ago

wwiecek commented 2 years ago

Consider

bg <- baggr(dplyr::mutate(schools, mu = rnorm(8), se.mu = rep(.5, 1)) %>% dplyr::rename(se.tau = se), model = "mutau")

When printing bg I want to see a separate line that would tell me what is the correlation between mu and tau (mean and 95% interval), the same way it tells me what hypermean and hyper-SD are. This can be obtained from bg$fit, but I'm forgetting which elements I need to extract right now.