Skip to content
Prev 265861 / 398503 Next

Extract confidence intervals from rma object (metafor package)

Dear Jokel,

Right now, none of the functions return that information. But it's easy to calculate those CIs by hand (simply take yi +- 1.96 sqrt(vi) and apply, if needed, some appropriate transformation). For example:

data(dat.bcg)
dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, 
              data=dat.bcg, append=TRUE)
exp(dat$yi - 1.96*sqrt(dat$vi))
exp(dat$yi + 1.96*sqrt(dat$vi))

gives you approximate 95% CIs for the RRs. The forest functions essentially do nothing different.

I hope this helps!

Best,

--
Wolfgang Viechtbauer
Department of Psychiatry and Neuropsychology
School for Mental Health and Neuroscience
Maastricht University, P.O. Box 616
6200 MD Maastricht, The Netherlands
Tel: +31 (43) 368-5248
Fax: +31 (43) 368-8689
Web: http://www.wvbauer.com