View source: R/meta_sensitivity.R
meta_sensitivity | R Documentation |
Sensitivity analysis assuming different prior distributions for the two main parameters of a Bayesian meta-analysis (i.e., the overall effect and the heterogeneity of effect sizes across studies).
meta_sensitivity(
y,
SE,
labels,
data,
d_list,
tau_list,
analysis = "bma",
combine_priors = "crossed",
...
)
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_list |
a |
tau_list |
a |
analysis |
which type of meta-analysis should be performed for analysis? Can be one of the following:
|
combine_priors |
either |
... |
further arguments passed to the function specified in |
an object of the S3 class meta_sensitivity
, that is, a list of fitted
meta-analysis models. Results can be printed or plotted using
plot.meta_sensitivity()
.
plot.meta_sensitivity()
data(towels)
sensitivity <- meta_sensitivity(
y = logOR, SE = SE, labels = study, data = towels,
d_list = list(prior("cauchy", c(0, .707)),
prior("norm", c(0, .5)),
prior("norm", c(.5, .3))),
tau_list = list(prior("invgamma", c(1, 0.15), label = "tau"),
prior("gamma", c(1.5, 3), label = "tau")),
analysis = "random",
combine_priors = "crossed")
print(sensitivity, digits = 2)
par(mfrow = c(1,2))
plot(sensitivity, "d", "prior")
plot(sensitivity, "d", "posterior")
plot(sensitivity, "tau", "prior")
plot(sensitivity, "tau", "posterior")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.