netmeta (version 1.2-1)

forest.netbind: Forest plot showing results of two or more network meta-analyses

Description

Forest plot to show network estimates of two or more network meta-analyses.

Usage

# S3 method for netbind
forest(
  x,
  pooled = ifelse(x$comb.random, "random", "fixed"),
  equal.size = FALSE,
  leftcols = "studlab",
  leftlabs = "Treatment",
  rightcols = c("effect", "ci"),
  rightlabs = NULL,
  digits = gs("digits.forest"),
  digits.prop = max(gs("digits.pval") - 2, 2),
  backtransf = x$backtransf,
  lab.NA = "",
  smlab,
  ...
)

Arguments

x

An object of class netbind.

pooled

A character string indicating whether results for the fixed ("fixed") or random effects model ("random") should be plotted. Can be abbreviated.

equal.size

A logical indicating whether all squares should be of equal size. Otherwise, the square size is proportional to the precision of estimates.

leftcols

A character vector specifying columns to be plotted on the left side of the forest plot (see Details).

leftlabs

A character vector specifying labels for columns on left side of the forest plot.

rightcols

A character vector specifying columns to be plotted on the right side of the forest plot (see Details).

rightlabs

A character vector specifying labels for columns on right side of the forest plot.

digits

Minimal number of significant digits for treatment effects and confidence intervals, see print.default.

digits.prop

Minimal number of significant digits for the direct evidence proportion.

backtransf

A logical indicating whether results should be back transformed in forest plots. If backtransf = TRUE, results for sm = "OR" are presented as odds ratios rather than log odds ratios, for example.

lab.NA

A character string to label missing values.

smlab

A label printed at top of figure. By default, text indicating either fixed or random effects model is printed.

Additional arguments for forest.meta function.

Details

A forest plot, also called confidence interval plot, is drawn in the active graphics window.

The arguments leftcols and rightcols can be used to specify columns which are plotted on the left and right side of the forest plot, respectively. If argument rightcols is FALSE, no columns will be plotted on the right side.

For more information see help page of forest.meta function.

See Also

netbind, netcomb, forest.meta

Examples

Run this code
# NOT RUN {
data(Linde2016)

# Only consider studies including Face-to-face PST (to reduce
# runtime of example)
#
face <- subset(Linde2016, id %in% c(16, 24, 49, 118))

# Standard random effects NMA model (with placebo as reference
# treatment)
#
net1 <- netmeta(lnOR, selnOR, treat1, treat2, id,
                data = face, reference.group = "placebo",
                sm = "OR", comb.fixed = FALSE)

# Additive CNMA model with placebo as inactive component and
# reference
#
nc1 <- netcomb(net1, inactive = "placebo")

# Combine results of standard NMA and CNMA
#
nb1 <- netbind(nc1, net1,
               name = c("Additive CNMA", "Standard NMA"),
               col.study = c("red", "black"),
               col.square = c("red", "black"))
forest(nb1,
       col.by = "black", addrow.subgroups = FALSE,
       fontsize = 10, spacing = 0.7, squaresize = 0.9,
       label.left = "Favours Placebo",
       label.right = "Favours other")

# }

Run the code above in your browser using DataLab