The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


plots:contour_enhanced_funnel_plot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
plots:contour_enhanced_funnel_plot [2019/06/03 18:22] – external edit 127.0.0.1plots:contour_enhanced_funnel_plot [2020/06/03 08:29] – [Code] Wolfgang Viechtbauer
Line 13: Line 13:
 <code rsplus> <code rsplus>
 library(metafor) library(metafor)
- 
-### decrease margins so the full space is used 
-par(mar=c(5,4,1,2)) 
  
 ### fit random-effects model ### fit random-effects model
-res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg, measure="RR", +res <- rma(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg)
-           slab=paste(author, year, sep=", "), method="REML")+
  
 ### create contour enhanced funnel plot (with funnel centered at 0) ### create contour enhanced funnel plot (with funnel centered at 0)
plots/contour_enhanced_funnel_plot.txt · Last modified: 2024/04/16 12:20 by Wolfgang Viechtbauer