tau_CI {MetaUtility} | R Documentation |
Return confidence interval for tau for a meta-analysis
Description
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
.
Usage
tau_CI(meta, ci.level = 0.95)
Arguments
meta |
A meta-analysis object fit in |
ci.level |
Confidence interval level as a proportion (e.g., 0.95) |
Examples
# 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] )
[Package MetaUtility version 2.1.2 Index]