View source: R/forest.netbind.R
forest.netbind | R Documentation |
Forest plot to show network estimates of two or more network meta-analyses.
## 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, ...)
x |
An object of class |
pooled |
A character string indicating whether results for the
common ( |
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 |
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 |
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 |
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.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
netbind
, netcomb
,
forest.meta
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.