View source: R/forest.mtrank.R
forest.mtrank | R Documentation |
mtrank
This function produces a forest plot that visualizes the ability estimates
calculated with mtrank
.
## S3 method for class 'mtrank'
forest(
x,
sorting = "ability",
backtransf = FALSE,
xlab = "",
leftcols = "studlab",
leftlabs = "Treatment",
rightcols = c("effect", "ci"),
rightlabs = c(paste0(if (!backtransf) "log-", "Abilities"), NA),
label.left = "Favors average treatment",
label.right = "Favors treatment",
header.line = TRUE,
...
)
x |
An object of class |
sorting |
An argument specifying the criterion to sort the ability estimates in the forest plot (see Details). |
backtransf |
A logical argument specifying whether to show log-ability
estimates ( |
xlab |
A label for the x-axis. |
leftcols |
A character vector specifying columns
to be printed on the left side of the forest plot
(see |
leftlabs |
A character vector specifying labels for columns on left side of the forest plot. |
rightcols |
A character vector specifying columns
to be printed on the right side of the forest plot
(see |
rightlabs |
A character vector specifying labels for columns on right side of the forest plot. |
label.left |
Graph label on left side of null effect. |
label.right |
Graph label on right side of null effect. |
header.line |
A logical value indicating whether to print a header line or a character string ("both", "below", ""). |
... |
Additional arguments (passed on to
|
The function produces a forest plot and visualizes the ability estimates
obtained from mtrank
. The order of the estimates in the
forest plot (argument sorting
) can be one of the following:
"ability": sort by descending ability estimates (default),
"se": sort by descending precision, i.e., increasing standard errors,
"none": use order from data set.
A forest plot is plotted in the active graphics device.
Evrenoglou T, Nikolakopoulou A, Schwarzer G, Rücker G, Chaimani A (2024): Producing treatment hierarchies in network meta-analysis using probabilistic models and treatment-choice criteria, https://arxiv.org/abs/2406.10612
# Examples: example(mtrank)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.