bma | R Documentation |
Model averaging for different meta-analysis models (e.g., random-effects or fixed-effects with different priors) based on the posterior model probability.
bma(
meta,
prior = 1,
parameter = "d",
summarize = "integrate",
ci = 0.95,
rel.tol = .Machine$double.eps^0.5
)
meta |
list of meta-analysis models (fitted via
|
prior |
prior probabilities over models (possibly unnormalized). For instance, if the first model is as likely as models 2, 3 and 4 together: |
parameter |
either the mean effect |
summarize |
how to estimate parameter summaries (mean, median, SD,
etc.): Either by numerical integration ( |
ci |
probability for the credibility/highest-density intervals. |
rel.tol |
relative tolerance used for numerical integration using
|
# model averaging for fixed and random effects
data(towels)
fixed <- meta_fixed(logOR, SE, study, towels)
random <- meta_random(logOR, SE, study, towels)
averaged <- bma(list("fixed" = fixed, "random" = random))
averaged
plot_posterior(averaged)
plot_forest(averaged, mar = c(4.5, 20, 4, .3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.