wwiecek / baggr

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

Remove group-specific parameters for very large meta-analyses #138

Open wwiecek opened 2 years ago

wwiecek commented 2 years ago

Something like baggr(schools, pars = c("theta_k", "eta"), include = FALSE) but the list of pars will differ depending on model, so automate this via argument remove_pars = TRUE.

Then you must ensure that the thing works without m <- rstan::extract(bg$fit, pars = "theta_k")[[1]] in group_effects and instead prints out "effects for groups have not been saved" or something like that.