metabind: Combine and summarize meta-analysis objects

View source: R/metabind.R

metabindR Documentation

Combine and summarize meta-analysis objects

Description

This function combines stored results from meta-analysis objects for printing and forest plots without calculating new pooled estimates. It is useful for comparing meta-analysis methods or presenting results from several subgroup analyses. The meta-analyses may use the same or different datasets and the same or compatible summary measures.

Usage

metabind(
  ...,
  name = NULL,
  common = NULL,
  random = NULL,
  prediction = NULL,
  backtransf = NULL,
  outclab = NULL,
  keepdata = TRUE,
  keepmeta = FALSE
)

Arguments

...

Any number of meta-analysis objects or a single list with meta-analyses.

name

An optional character vector providing descriptive names for the meta-analysis objects. Defaults to their subgroup.name values when subgroup results are present, and "meta1", "meta2", etc. otherwise.

common

A logical vector indicating whether results of common effect model should be considered.

random

A logical vector indicating whether results of random effects model should be considered.

prediction

A logical vector indicating whether results of prediction intervals should be considered.

backtransf

A logical indicating whether results should be back transformed in printouts and plots. If backtransf = TRUE (default), results for sm = "OR" are printed as odds ratios rather than log odds ratios, for example.

outclab

Outcome label for all meta-analysis objects.

keepdata

A logical indicating whether to store the element 'data' from meta-analysis objects provided in argument ....

keepmeta

A logical indicating whether to store the meta-analysis objects provided in argument ....

Details

Any number of meta-analysis objects can be supplied separately or as a single list. All objects must either contain subgroup analyses or have no subgroups. Selected common effect and random effects results, prediction intervals, and subgroup results are retained, including results from multiple interval methods. No new pooled estimates or tests comparing the included meta-analyses are calculated.

Results can be printed with print.metabind or displayed in a forest plot with forest.metabind. For subgroup analyses, overall summaries can be displayed once when the datasets, selected results, and relevant analysis and interval settings agree. Overall heterogeneity is assessed separately and is shared only when its values and settings also agree.

Meta-analyses may use the same summary measure or different measures within a compatible family: relative effects, correlations, means, proportions, or incidence rates. When summary measures differ, backtransf = TRUE is enforced. Back-transformations and their arguments are retained and applied separately to results from each meta-analysis.

Individual study results are not stored as a combined study-level results table in a metabind object. Original datasets and meta-analysis objects can be retained using keepdata and keepmeta, respectively. Use metamerge to combine results from analyses of the same dataset while retaining individual study results.

Value

An object of class "metabind" with corresponding print, summary, and forest methods. Result data frames use column id to identify the included meta-analysis. The object is a list containing the following components:

overall

Data frame with one row per included meta-analysis, containing its identifier, name, summary measure, analysis and transformation settings, study and sample-size information, and heterogeneity statistics. Variance-component fields retain complete vectors in list columns.

common

Data frame with selected overall common effect results, including estimates, standard errors, confidence limits, test statistics, P values, and method information. NULL if no common effect results are selected.

random

Data frame with selected overall random effects results, with one row per included meta-analysis and confidence interval method. Includes estimates, standard errors, confidence limits, test statistics, P values, degrees of freedom, and method and ad hoc correction settings. Column interval.slot numbers the confidence intervals within each meta-analysis. NULL if no random effects results are selected.

predict

Data frame with selected overall prediction intervals, with one row per included meta-analysis and prediction interval method. Includes prediction limits, standard errors, degrees of freedom, method and ad hoc correction settings. Column interval.slot numbers the prediction intervals within each meta-analysis. NULL if no prediction intervals are selected.

subgroup

List with components common, random, and predict, containing data frames with the corresponding stored subgroup results, subgroup names and levels, and study counts. Common effect and random effects tables also contain subgroup-difference test statistics, complete degrees-of-freedom entries, and P values, where available. For random effects and prediction intervals, id and interval.slot link each subgroup result to the corresponding overall result. Unselected result types are NULL; the entire component is omitted when the included meta-analyses have no subgroup analyses.

sm.family

Character string identifying the compatible summary-measure family when measures differ: "relative", "correlation", "mean", "proportion", or "rate". An empty string if all summary measures are the same.

backtransf

As defined above.

samedata

Logical indicating whether all datasets are available and recognised as identical, ignoring analysis-specific subgroup assignments.

data

Datasets from the included meta-analyses, retained when keepdata = TRUE (default). A single data frame when datasets are recognised as identical, otherwise a list in the order supplied. Omitted if keepdata = FALSE.

meta

List of included meta-analysis objects in the order supplied. Included only if keepmeta = TRUE.

call

Function call.

version

Version of R package meta used to create object.

Author(s)

Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de

See Also

forest.metabind, as.data.frame.metabind, metamerge

Examples

data(Fleiss1993cont)

# Add some (fictitious) grouping variables:
#
Fleiss1993cont$age <- c(55, 65, 55, 65, 55)
Fleiss1993cont$region <- c("Europe", "Europe", "Asia", "Asia", "Europe")

ma <- metacont(n.psyc, mean.psyc, sd.psyc, n.cont, mean.cont, sd.cont,
  data = Fleiss1993cont, sm = "SMD")

# Conduct two subgroup analyses
#
ma1 <- update(ma, subgroup = age, subgroup.name = "Age group")
ma2 <- update(ma, subgroup = region, subgroup.name = "Region")

# Combine random effects subgroup meta-analyses and show forest
# plot with subgroup results
#
mb <- metabind(ma1, ma2, common = FALSE)
mb
forest(mb)

## Not run: 
# Use various estimation methods for between-study heterogeneity
# variance
#
ma.pm <- update(ma, method.tau = "PM")
ma.dl <- update(ma, method.tau = "DL")
ma.ml <- update(ma, method.tau = "ML")
ma.hs <- update(ma, method.tau = "HS")
ma.sj <- update(ma, method.tau = "SJ")
ma.he <- update(ma, method.tau = "HE")
ma.eb <- update(ma, method.tau = "EB")

# Combine meta-analyses and show results
#
taus <- c("Restricted maximum-likelihood estimator",
  "Paule-Mandel estimator",
  "DerSimonian-Laird estimator",
  "Maximum-likelihood estimator",
  "Hunter-Schmidt estimator",
  "Sidik-Jonkman estimator",
  "Hedges estimator",
  "Empirical Bayes estimator")
#
ma.taus <- metabind(ma, ma.pm, ma.dl, ma.ml, ma.hs, ma.sj, ma.he, ma.eb,
  name = taus, common = FALSE)
ma.taus
forest(ma.taus)

## End(Not run)


meta documentation built on Nov. 14, 2026, 5:09 p.m.