metafor v2.4-0

0

Monthly downloads

0th

Percentile

Meta-Analysis Package for R

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'Abbe, 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.

Readme

metafor: A Meta-Analysis Package for R

Build Status Code Coverage CRAN Version devel Version Monthly Downloads Total Downloads

Description

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.

Package Website

The metafor package website can be found at http://www.metafor-project.org. On the website, you can find:

Documentation

A good starting place for those interested in using the metafor package is the following paper:

Viechtbauer, W. (2010). Conducting meta-analyses in R with the metafor package. Journal of Statistical Software, 36(3), 1-48. https://www.jstatsoft.org/v36/i03/.

In addition to reading the paper, carefully read the package intro and then the help pages for the escalc and the rma.uni functions (or the rma.mh, rma.peto, rma.glmm, rma.mv functions if you intend to use these methods). The help pages for these functions provide links to many additional functions, which can be used after fitting a model. You can also read the entire documentation online at https://wviechtb.github.io/metafor/ (where it is nicely formatted, equations are shown correctly, and the output from all examples is provided).

Installation

The current official (i.e., CRAN) release can be installed directly within R with:

install.packages("metafor")

After installing the remotes package with install.packages("remotes"), the development version of the metafor package can be installed with:

remotes::install_github("wviechtb/metafor")

This builds the package from source based on the current version on GitHub.

Meta

The metafor package was written by Wolfgang Viechtbauer. It is licensed under the GNU General Public License. For citation info, type citation(package='metafor') in R. To report any issues or bugs or to suggest enhancements to the package, please go here.

Functions in metafor

Name Description
addpoly.default Add Polygons to Forest Plots (Default Method)
coef.rma Extract the Model Coefficients and Coefficient Table from 'rma' and 'summary.rma' Objects
bldiag Construct Block Diagonal Matrix
addpoly Add Polygons to Forest Plots
confint.rma Confidence Intervals for 'rma' Objects
contrmat Construct Contrast Matrix for Two-Group Comparisons
blup Best Linear Unbiased Predictions for 'rma.uni' Objects
coef.permutest.rma.uni Extract the Model Coefficient Table from 'permutest.rma.uni' Objects
baujat Baujat Plots for 'rma' Objects
addpoly.rma Add Polygons to Forest Plots (Method for 'rma' Objects)
cumul Cumulative Meta-Analysis for 'rma' Objects
anova.rma Likelihood Ratio and Wald-Type Tests for 'rma' Objects
dat.colditz1994 Studies on the Effectiveness of the BCG Vaccine Against Tuberculosis
dat.berkey1998 Studies on Treatments for Periodontal Disease
dat.bangertdrowns2004 Studies on the Effectiveness of Writing-to-Learn Interventions
dat.bourassa1996 Studies on the Association between Handedness and Eye-Dominance
dat.bonett2010 Studies on the Reliability of the CES-D Scale
dat.begg1989 Studies on Bone-Marrow Transplantation versus Chemotherapy for the Treatment of Leukemia
dat.graves2010 Studies on the Effectiveness of Injected Cholera Vaccines
dat.hasselblad1998 Studies on the Effectiveness of Counseling for Smoking Cessation
dat.collins1985a Studies on the Treatment of Upper Gastrointestinal Bleeding by a Histamine H2 Antagonist
dat.collins1985b Studies on the Effects of Diuretics in Pregnancy
dat.curtis1998 Studies on the Effects of Elevated CO2 Levels on Woody Plant Mass
dat.gibson2002 Studies on the Effectiveness of Self-Management Education and Regular Medical Review for Adults with Asthma
dat.egger2001 Studies on the Effectiveness of Intravenous Magnesium in Acute Myocardial Infarction
dat.li2007 Studies on the Effectiveness of Intravenous Magnesium in Acute Myocardial Infarction
dat.debruin2009 Studies on Standard Care Quality and HAART-Adherence
dat.mcdaniel1994 Studies on the Validity of Employment Interviews
dat.hine1989 Studies on Prophylactic Use of Lidocaine After a Heart Attack
dat.hackshaw1998 Studies on Lung Cancer Risk from ETS Exposure
dat.nielweise2007 Studies on Anti-Infective-Treated Central Venous Catheters for Prevention of Catheter-Related Bloodstream Infections
dat.nielweise2008 Studies on Anti-Infective-Treated Central Venous Catheters for Prevention of Catheter-Related Bloodstream Infections
dat.linde2005 Studies on the Effectiveness of St. John's Wort for Treating Depression
dat.molloy2014 Studies on the Relationship between Conscientiousness and Medication Adherence
dat.hart1999 Studies on the Effectiveness of Warfarin for Preventing Strokes
dat.ishak2007 Studies on Deep-Brain Stimulation
dat.fine1993 Studies on Radiation Therapy with or without Adjuvant Chemotherapy in Patients with Malignant Gliomas
dat.konstantopoulos2011 Studies on the Effects of Modified School Calendars on Student Achievement
dat.normand1999 Studies on the Length of Hospital Stay of Stroke Patients
escalc Calculate Effect Sizes and Outcome Measures
dat.senn2013 Studies on the Effectiveness of Glucose-Lowering Agents
dat.yusuf1985 Studies of Beta Blockers During and After Myocardial Infarction
dat.riley2003 Studies on MYC-N as a Prognostic Marker for Neuroblastoma
dat.raudenbush1985 Studies on Assessing the Effects of Teacher Expectations on Pupil IQ
dat.pagliaro1992 Studies on the Effectiveness of Nonsurgical Treatments in Cirrhosis
dat.pignon2000 Studies on the Effectiveness of Locoregional Treatment plus Chemotherapy for Head and Neck Squamous-Cell Carcinoma
dat.laopaiboon2015 Studies on the Effectiveness of Azithromycin for Treating Lower Respiratory Tract Infections
fitstats Fit Statistics and Information Criteria for 'rma' Objects
dat.lee2004 Studies on Acupoint P6 Stimulation for Preventing Nausea
gosh GOSH Plots for 'rma' Objects
forest.rma Forest Plots (Method for 'rma' Objects)
dat.pritz1997 Studies on the Effectiveness of Hyperdynamic Therapy for Treating Cerebral Vasospasm
llplot Likelihood Plot of a Parameter Corresponding to an Effect Size or Outcome Measure
formula.rma Model Formulae for 'rma' Objects
forest Forest Plots
hc Meta-Analysis based on the Method by Henmi and Copas (2010)
methods.list.rma Methods for 'list.rma' Objects
fitted.rma Fitted Values for 'rma' Objects
metafor.news Read News File of the Metafor Package
print.robust.rma Print Method for 'robust.rma' Objects
model.matrix.rma Model Matrix for 'rma' Objects
print.fsn Print Method for 'fsn' Objects
print.rma Print and Summary Methods for 'rma' Objects
print.escalc Print and Summary Methods for 'escalc' Objects
metafor-package metafor: A Meta-Analysis Package for R
plot.rma Plot Method for 'rma' Objects
regtest Regression Test for Funnel Plot Asymmetry
funnel Funnel Plots
forest.cumul.rma Forest Plots (Method for 'cumul.rma' Objects)
ranktest Rank Correlation Test for Funnel Plot Asymmetry
methods.escalc Methods for 'escalc' Objects
labbe L'Abbe Plots for 'rma' Objects
to.long Convert Data from Vector to Long Format
to.table Convert Data from Vector to Table Format
plot.gosh.rma Plot Method for 'gosh.rma' Objects
fsn Fail-Safe N Analysis (File Drawer Analysis)
influence.rma.mv Outlier and Influential Case Diagnostics for 'rma.mv' Objects
permutest Permutation Tests for 'rma.uni' Objects
predict.rma Predicted Values for 'rma' Objects
plot.cumul.rma Plot Method for 'cumul.rma' Objects
forest.default Forest Plots (Default Method)
print.ranktest.rma Print Method for 'ranktest.rma' Objects
profile.rma.uni Profile Plots for 'rma' Objects
leave1out Leave-One-Out Diagnostics for 'rma' Objects
influence.rma.uni Outlier and Influential Case Diagnostics for 'rma.uni' Objects
plot.infl.rma.uni Plot Method for 'infl.rma.uni' Objects
print.confint.rma Print Methods for 'confint.rma' and 'list.confint.rma' Objects
print.anova.rma Print Method for 'anova.rma' Objects
print.regtest.rma Print Method for 'regtest.rma' Objects
ranef Best Linear Unbiased Predictions for 'rma.uni' and 'rma.mv' Objects
radial Radial (Galbraith) Plots for 'rma' Objects
print.permutest.rma.uni Print Method for 'permutest.rma.uni' Objects
rma.glmm Meta-Analysis via Generalized Linear (Mixed-Effects) Models
print.hc.rma.uni Print Method for 'hc.rma.uni' Objects
print.list.rma Print method for 'list.rma' Objects
print.gosh.rma Print Method for 'gosh.rma' Objects
residuals.rma Residual Values based on 'rma' Objects
qqnorm.rma.uni Normal QQ Plots for 'rma' Objects
rma.mh Meta-Analysis via the Mantel-Haenszel Method
replmiss Replace Missing Values in a Vector
rma.peto Meta-Analysis via Peto's Method
trimfill Trim and Fill Analysis for 'rma.uni' Objects
reporter Dynamically Generated Analysis Reports for 'rma.uni' Objects
rma.mv Meta-Analysis via Multivariate/Multilevel Linear (Mixed-Effects) Models
simulate.rma Simulate Method for 'rma' Objects
transf Transformation Function
update.rma Model Updating for 'rma' Objects
to.wide Convert Data from a Long to a Wide Format
weights.rma.uni Compute Weights for 'rma' Objects
rma.uni Meta-Analysis via Linear (Mixed-Effects) Models
robust (Cluster) Robust Tests and Confidence Intervals for 'rma' Objects
vcov.rma Extract Various Types of Variance-Covariance Matrices from 'rma' Objects
vif Variance Inflation Factors for 'rma' Objects
No Results!

Vignettes of metafor

Name
diagram.pdf.asis
metafor.pdf.asis
No Results!

Last month downloads

Details

Date 2020-03-19
License GPL (>= 2)
ByteCompile TRUE
LazyData TRUE
Encoding UTF-8
VignetteBuilder R.rsp
URL http://www.metafor-project.org https://github.com/wviechtb/metafor https://wviechtb.github.io/metafor/ http://www.wvbauer.com
BugReports https://github.com/wviechtb/metafor/issues
NeedsCompilation no
Packaged 2020-03-19 21:07:47 UTC; wviechtb
Repository CRAN
Date/Publication 2020-03-19 22:30:10 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/metafor)](http://www.rdocumentation.org/packages/metafor)