[R] forest plot metafor

Mario Petretta petretta at unina.it
Wed Dec 9 19:48:56 CET 2015


Dear all,



I use metafor package to generate a forest plot showing the weight of each study in the plot.



I use the code:

library(metafor)

data(dat.bcg)

res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg, measure="RR",

           slab=paste(author, year, sep=", "), method="REML")

forest(res, showweights=TRUE)



It is possible to order the columns, placing the weights after effect size and CI?



A further query: using escalc (or rma), it is possible to add the weight of each study (other than yi and vi) to the data (in the example: data.bcg)?



Thanks for your attention



________________________



Mario Petretta

Professor of Internal Medicine

Department of Translational Medical Science

Naples University “Federico II” - Italy





  _____


 <http://www.avast.com/>

Questa e-mail è priva di virus e malware perché è attiva la protezione avast! Antivirus <http://www.avast.com/>  .



Nessun virus nel messaggio.
Controllato da AVG - www.avg.com
Versione: 2014.0.4259 / Database dei virus: 3705/7093 - Data di rilascio: 14/02/2014



---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

	[[alternative HTML version deleted]]



More information about the R-help mailing list