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

View source: R/forest.netbind.R

forest.netbindR Documentation

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 class 'netbind'
forest(
  x,
  pooled = ifelse(x$x$random, "random", "common"),
  equal.size = TRUE,
  leftcols = "studlab",
  leftlabs = "Treatment",
  rightcols = c("effect", "ci"),
  rightlabs = NULL,
  subset.treatments,
  digits = gs("digits.forest"),
  digits.prop = max(gs("digits.pval") - 2, 2),
  backtransf = x$backtransf,
  lab.NA = "",
  smlab,
  ...
)

## S3 method for class 'netbind'
plot(x, ...)

Arguments

x

An object of class netbind.

pooled

A character string indicating whether results for the common ("common") 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.

subset.treatments

A character vector specifying treatments to show in forest plot as comparators to the reference.

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 common 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.

Author(s)

Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de

See Also

netbind, netcomb, forest.meta

Examples

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", common = 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")


netmeta documentation built on June 23, 2024, 9:06 a.m.