Description Usage Arguments Details Value Note Author(s) References See Also Examples
Function to create funnel plots with ggplot2.
1 2 3 4 |
x |
an object of class |
... |
other arguments. |
Description of what the function does.
A plot object.
In case some additional notes are needed.
John Sakaluk jksakaluk@gmail.com
Light, R. J., & Pillemer, D. B. (1984). Summing up: The science of reviewing research. Cambridge, MA: Harvard University Press.
Peters, J. L., Sutton, A. J., Jones, D. R., Abrams, K. R., & Rushton, L. (2008). Contour-enhanced meta-analysis funnel plots help distinguish publication bias from other causes of asymmetry. Journal of Clinical Epidemiology, 61, 991–996.
Sterne, J. A. C., & Egger, M. (2001). Funnel plots for detecting bias in meta-analysis: Guidelines on choice of axis. Journal of Clinical Epidemiology, 54, 1046–1055.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ### load BCG vaccine data
dat <- get(data(dat.bcg))
### calculate log risk ratios and corresponding sampling variances
dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat)
### random-effects model
res <- rma(yi, vi, data=dat)
### standard funnel plot
funnel(res)
### funnel plot using metaggplots
ggfunnel(res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.