loo.poth {poth} | R Documentation |
Leave-one-out method for precision of treatment hierarchy (POTH) metric
Description
Leave-one-out method for precision of treatment hierarchy (POTH) metric
Usage
## S3 method for class 'poth'
loo(x, ...)
loo(x, ...)
## S3 method for class 'loo.poth'
print(x, digits = 3, legend = TRUE, ...)
Arguments
x |
An R object of class |
... |
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 loo.poth
and the following
variables:
trt |
Treatment names. |
rank |
Treatment rank (global). |
score |
Ranking metric (global). |
poth_loo |
Leave-one-out POTH. |
resid |
Residuals (global POTH minus leave-one-out POTH. |
ratio |
Ratio of residual devided by absolute sum of residuals. |
Examples
library("netmeta")
data(smokingcessation)
p1 <- pairwise(list(treat1, treat2, treat3),
event = list(event1, event2, event3), n = list(n1, n2, n3),
data = smokingcessation, sm = "OR")
net1 <- netmeta(p1, random = FALSE)
# Leave-one-out method
loo1 <- loo(poth(net1))
loo1
[Package poth version 0.2-0 Index]