The metafor
package is a comprehensive collection of functions for conducting meta-analyses in R. The package includes functions to calculate various effect sizes or outcome measures, fit fixed-, random-, and mixed-effects models to such data, carry out moderator and meta-regression analyses, and create various types of meta-analytical plots (e.g., forest, funnel, radial, L'Abbé, Baujat, GOSH plots). For meta-analyses of binomial and person-time data, the package also provides functions that implement specialized methods, including the Mantel-Haenszel method, Peto's method, and a variety of suitable generalized linear (mixed-effects) models (i.e., mixed-effects logistic and Poisson regression models). Finally, the package provides functionality for fitting meta-analytic multivariate/multilevel models that account for non-independent sampling errors and/or true effects (e.g., due to the inclusion of multiple treatment studies, multiple endpoints, or other forms of clustering). Network meta-analyses and meta-analyses accounting for known correlation structures (e.g., due to phylogenetic relatedness) can also be conducted.
The metafor
package website can be found at http://www.metafor-project.org. On the website, you can find:
- some news concerning the package and/or its development,
- a more detailed description of the package features,
- a log of the package updates that have been made over the years,
- a to-do list and a description of planned features to be implemented in the future,
- information on how to download and install the package,
- information on how to obtain documentation and help with using the package,
- some analysis examples that illustrate various models, methods, and techniques,
- a little showcase of plots and figures that can be created with the package,
- some tips and notes that may be useful when working with the package,
- a list of people that have in some shape or form contributed to the development of the package,
- an (incomplete) list of articles that have used the package as part of the analyses,
- a frequently asked questions section, and
- some links to other websites related to software for meta-analysis.
The current official (i.e., CRAN) release can be installed directly within R with:
install.packages("metafor")
After installing the devtools package with install.packages("devtools")
, the development version of the metafor package can be installed with:
library("devtools")
install_github("wviechtb/metafor")
This approach builds the package from source based on the development branch on GitHub.
The metafor package was written by Wolfgang Viechtbauer. It is licensed under the GNU General Public License Version 2. For citation info, type citation(package='metafor')
in R. To report any issues or bugs, please go here.