league.crossnma {crossnma} | R Documentation |
League Table
Description
Produces a league table that contains point estimates of relative effects for all possible pairs of treatments along with 95% credible intervals obtained with the quantile method.
Usage
## S3 method for class 'crossnma'
league(
x,
median = TRUE,
backtransf = x$model$backtransf,
order = NULL,
cov1.value = NULL,
cov2.value = NULL,
cov3.value = NULL,
digits = gs("digits"),
direction = "wide",
exp = backtransf,
...
)
league(x, ...)
## S3 method for class 'league.crossnma'
print(x, ...)
Arguments
x |
An object created with |
median |
A logical indicating whether to use the median (default) or mean to measure relative treatment effects. |
backtransf |
A logical indicating whether results should be
back transformed. If |
order |
A vector of treatment names (character) representing the order in which to display these treatments. |
cov1.value |
The participant covariate value of |
cov2.value |
The participant covariate value of |
cov3.value |
The participant covariate value of |
digits |
The number of digits to be used when displaying the results. |
direction |
The format to display the league table. Two options "wide" (default) and "long". |
exp |
Deprecated argument (replaced by |
... |
Additional arguments (ignored at the moment). |
Value
A league table. Row names indicate comparator treatments. The table will be displayed in a long or wide formatting.
Author(s)
Tasnim Hamza tasnim.hamza@ispm.unibe.ch
See Also
Examples
## Not run:
# We conduct a network meta-analysis assuming a random-effects
# model.
# The data comes from randomized-controlled trials and
# non-randomized studies (combined naively)
head(ipddata) # participant-level data
stddata # study-level data
# Create a JAGS model
mod <- crossnma.model(treat, id, relapse, n, design,
prt.data = ipddata, std.data = stddata,
reference = "A", trt.effect = "random", method.bias = "naive")
# Fit JAGS model
set.seed(1909)
fit <- crossnma(mod)
# Create league tables
league(fit) # wide format
league(fit, direction = "long") # long format
## End(Not run)