refdist {poth} | R Documentation |
Generate reference distribution for POTH for a given network structure
Description
Generate reference distribution for POTH for a given network structure
Usage
refdist(x, d, pooled, nsim = 25, verbose = TRUE)
## S3 method for class 'refdist'
print(x, ...)
## S3 method for class 'refdist'
summary(object, ...)
Arguments
x |
A |
d |
A vector of the desired relative effects, must be in the same
order as |
pooled |
A character string indicating whether the treatment hierarchy
is based on a common or random effects model. Either |
nsim |
Number of samples from reference distribution. |
verbose |
A logical indicating whether progress information should be printed. |
... |
Additional arguments passed on to print or summary function. |
object |
A |
Details
By default, argument pooled
is equal to "random" if only the random
effects model was considered in the network meta-analysis x
.
Otherwise, argument pooled
is equal to "common".
If argument d
is missing, the respective relative effects are taken
to be all 0.
Value
A vector of POTH values.
See Also
Examples
library("netmeta")
data(Senn2013)
net1 <- netmeta(TE, seTE, treat1.long, treat2.long, studlab,
data = Senn2013,
sm = "MD")
# POTH (based on common effects model)
poth(net1)
# Sample POTH values from reference distribution (common effects model)
set.seed(1909)
poths <- refdist(net1)
summary(poths)
# POTH (based on random effects model)
poth(net1, pooled = "random")
# Sample POTH values from reference distribution (common effect model)
poths.r <- refdist(net1, pooled = "random")
summary(poths.r)