Description Usage Arguments Examples
Returns confidence interval lower and upper limits for tau (the estimated standard deviation of
the population effects) for a meta-analysis fit in metafor::rma
.
1 | tau_CI(meta, ci.level = 0.95)
|
meta |
A meta-analysis object fit in |
ci.level |
Confidence interval level as a proportion (e.g., 0.95) |
1 2 3 4 5 6 7 8 9 10 11 12 13 | # calculate effect sizes for example dataset
d = metafor::escalc(measure="RR", ai=tpos, bi=tneg,
ci=cpos, di=cneg, data=metadat::dat.bcg)
# fit random-effects model
# note that metafor package returns on the log scale
m = metafor::rma.uni(yi= d$yi, vi=d$vi, knha=TRUE,
measure="RR", method="REML" )
tau_CI(m)
# for nicer formatting
format_CI( tau_CI(m)[1], tau_CI(m)[2] )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.