meta_fixed {metaBMA} | R Documentation |
Bayesian Fixed-Effects Meta-Analysis
Description
Runs a Bayesian meta-analysis assuming that the mean effect d
in each
study is identical (i.e., a fixed-effects analysis).
Usage
meta_fixed(
y,
SE,
labels,
data,
d = prior("cauchy", c(location = 0, scale = 0.707)),
rscale_contin = 1/2,
rscale_discrete = 0.707,
centering = TRUE,
logml = "integrate",
summarize = "integrate",
ci = 0.95,
rel.tol = .Machine$double.eps^0.3,
silent_stan = TRUE,
...
)
Arguments
y |
effect size per study. Can be provided as (1) a numeric vector, (2)
the quoted or unquoted name of the variable in |
SE |
standard error of effect size for each study. Can be a numeric
vector or the quoted or unquoted name of the variable in |
labels |
optional: character values with study labels. Can be a
character vector or the quoted or unquoted name of the variable in
|
data |
data frame containing the variables for effect size |
d |
|
rscale_contin |
scale parameter of the JZS prior for the continuous covariates. |
rscale_discrete |
scale parameter of the JZS prior for discrete moderators. |
centering |
whether continuous moderators are centered. |
logml |
how to estimate the log-marginal likelihood: either by numerical
integration ( |
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
|
silent_stan |
whether to suppress the Stan progress bar. |
... |
further arguments passed to |
Examples
### Bayesian Fixed-Effects Meta-Analysis (H1: d>0)
data(towels)
mf <- meta_fixed(logOR, SE, study,
data = towels,
d = prior("norm", c(mean = 0, sd = .3), lower = 0)
)
mf
plot_posterior(mf)
plot_forest(mf)