combine_data
combines different effect sizes
into a common measure specified in transformation
. Either
a data.frame data
with columns named corresponding to the
arguments or vectors with individual values can be passed.
combine_data(
d = NULL,
r = NULL,
z = NULL,
logOR = NULL,
OR = NULL,
t = NULL,
y = NULL,
se = NULL,
v = NULL,
n = NULL,
lCI = NULL,
uCI = NULL,
study_names = NULL,
study_ids = NULL,
weight = NULL,
data = NULL,
transformation = "fishers_z",
return_all = FALSE,
...
)
a vector of effect sizes measured as Cohen's d
a vector of effect sizes measured as correlations
a vector of effect sizes measured as Fisher's z
a vector of effect sizes measured as log odds ratios
a vector of effect sizes measured as odds ratios
a vector of t/z-statistics
a vector of unspecified effect sizes (note that effect size transformations are unavailable with this type of input)
a vector of standard errors of the effect sizes
a vector of variances of the effect sizes
a vector of overall sample sizes
a vector of lower bounds of confidence intervals
a vector of upper bounds of confidence intervals
an optional argument with the names of the studies
an optional argument specifying dependency between the
studies (for using a multilevel model). Defaults to NULL
for
studies being independent.
specifies likelihood weights of the individual estimates. Notes that this is an untested experimental feature.
a data frame with column names corresponding to the variable names used to supply data individually
transformation to be applied to the supplied
effect sizes before fitting the individual models. Defaults to
"fishers_z"
. We highly recommend using "fishers_z"
transformation since it is the only variance stabilizing measure
and does not bias PET and PEESE style models. The other options are
"cohens_d"
, correlation coefficient "r"
and "logOR"
.
Supplying "none"
will treat the effect sizes as unstandardized and
refrain from any transformations.
whether data frame containing all filled values should be
returned. Defaults to FALSE
additional arguments.
combine_data
returns a data.frame.
The aim of the function is to combine different, already calculated, effect size measures. In order to obtain effect size measures from raw values, e.g, mean differences, standard deviations, and sample sizes, use escalc function.
The function checks the input values and in transforming the input into a common effect size measure in the following fashion:
obtains missing standard errors by squaring variances
obtains missing standard errors from confidence intervals (after transformation to
Fisher's z scale for d
and r
).
obtains missing sample sizes (or standard errors for logOR) from t-statistics and effect sizes
obtains missing standard errors from sample sizes and effect sizes
obtains missing sample sizes from standard errors and effect sizes
obtains missing t-statistics from sample sizes and effect sizes (or standard errors and effect sizes for logOR)
changes the effect sizes direction to be positive
transforms effect sizes into the common effect size
transforms standard errors into the common metric
If the transforms
is NULL
or an unstandardized effect size y
is
supplied, steps 4-9 are skipped.