### copy data from Pignon et al. (2000) into 'dat'
dat <- dat.pignon2000
### calculate estimated log hazard ratios and sampling variances
dat$yi <- with(dat, OmE/V)
dat$vi <- with(dat, 1/V)
### meta-analysis based on all 65 trials
res <- rma(yi, vi, data=dat, method="EE", slab=trial)
### create Baujat plot
baujat(res)
### some variations of the plotting symbol
baujat(res, symbol=19)
baujat(res, symbol="slab")
### label only a selection of the more 'extreme' points
sav <- baujat(res, symbol=19, xlim=c(0,20))
sav <- sav[sav$x >= 10 | sav$y >= 0.10,]
text(sav$x, sav$y, sav$slab, pos=1, cex=0.8)
Run the code above in your browser using DataLab