subset.poth {poth} | R Documentation |
Calculate the local POTH for a subset of treatments
Description
Calculate the local POTH for a subset of treatments
Usage
## S3 method for class 'poth'
subset(x, subset, top, bottom, ...)
Arguments
x |
An object of class |
subset |
A character vector of treatment names to consider as the set of competing treatments. |
top |
A single integer to define the number of treatments with the largest ranking metric to consider in subset. |
bottom |
A single integer to define the number of treatments with the smallest ranking metric to consider in subset. |
... |
Additional arguments (ignored). |
Value
An R object of class poth
.
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)
# Use P-scores to calculate local POTH for treatments "A" and "C"
subset(poth(net1), subset = c("A", "C"))
# Use P-scores to calculate local POTH for first three treatments
subset(poth(net1), top = 3)
# Use P-scores to calculate local POTH for first three treatments
subset(poth(net1), bottom = 3)
[Package poth version 0.2-0 Index]