Inspired by the archived extfunnel package by Langan et al. The function creates an extended funnel plot with shaded contours that show the impact of a new study with a certain effect estimate and standard error (or sample size) on the conclusions of an updated meta-analysis. Uses ggplot2 instead of base R, allows specification of the meta-analytic model via the metafor package as well as simulation using sample size per group in addition to the standard error.
Installation
extfunnel2
is not on CRAN. You can install the latest version from GitHub with:
# install.packages("remotes")
remotes::install_github("florianteichert/extfunnel2")
Examples
library(extfunnel2)
?extfunnel2
How to cite this package in your article
Teichert, F. (2023). extfunnel2: Create Extended Funnel Plots. R package version 0.1.1. https://doi.org/10.5281/zenodo.7922119
Please also cite
Langan, D., Higgins, J. P. T., Gregory, W., & Sutton, A. J. (2012). Graphical augmentations to the funnel plot assess the impact of additional evidence on a meta-analysis. Journal of Clinical Epidemiology, 65(5), 511–519. https://doi.org/10.1016/j.jclinepi.2011.10.009
Acknowledgments
- Langan, D., Sutton, A. J., Higgins, J. P. T. & Gregory, W. (2013). extfunnel. R package version 1.3. https://cran.r-project.org/package=extfunnel
- Langan, D., Higgins, J. P. T., Gregory, W., & Sutton, A. J. (2012). Graphical augmentations to the funnel plot assess the impact of additional evidence on a meta-analysis. Journal of Clinical Epidemiology, 65(5), 511–519. https://doi.org/10.1016/j.jclinepi.2011.10.009
- Ferreira, M. L., Herbert, R. D., Crowther, M. J., Verhagen, A., & Sutton, A. J. (2012). When is a further clinical trial justified? BMJ, 345, e5913. https://doi.org/10.1136/bmj.e5913
- Wickham, H. (2016). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. https://ggplot2.tidyverse.org
- Viechtbauer, W. (2010). Conducting meta-analyses in R with the metafor package. Journal of Statistical Software, 36(3), 1-48. https://doi.org/10.18637/jss.v036.i03