refdist | R Documentation |
Generate reference distribution for POTH for a given network structure
refdist(x, d, pooled, nsim = 25, verbose = TRUE)
## S3 method for class 'refdist'
print(x, ...)
## S3 method for class 'refdist'
summary(object, ...)
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 |
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.
A vector of POTH values.
netmeta
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.