bestk.poth {poth} | R Documentation |
Best k treatments method for precision of treatment hierarchy (POTH) metric
Description
Best k treatments method for precision of treatment hierarchy (POTH) metric
Usage
## S3 method for class 'poth'
bestk(x, sort = TRUE, ...)
## S3 method for class 'bestk.poth'
print(x, digits = 3, legend = TRUE, ...)
bestk(x, ...)
Arguments
x |
An R object of class |
sort |
A logical indicating whether results should be sorted by decreasing ranking metric. |
... |
Additional arguments. |
digits |
Minimal number of significant digits, see
|
legend |
A logical indicating whether a legend should be printed. |
Value
A data frame with additional class bestk.poth
and the
following variables:
trt |
Name of added treatment. |
rank |
Treatment rank (global). |
score |
Ranking metric (global). |
poth_bestk |
Best k treatments POTH. |
Examples
library("netmeta")
data(Senn2013)
net1 <- netmeta(TE, seTE, treat1.long, treat2.long, studlab,
data = Senn2013, sm = "MD", random = FALSE)
# Best k treatments method
bk1 <- bestk(poth(net1))
bk1
plot(bk1)
plot(bk1, labels = TRUE)
bk2 <- bestk(poth(net1), sort = FALSE)
bk2
plot(bk2)
plot(bk2, labels = TRUE)
[Package poth version 0.3-0 Index]