Package Introduction

Introduction to the package

metafor-package

metafor: A Meta-Analysis Package for R

Outcome Measures

Functions to compute various types of effect sizes and outcome measures.

escalc()

Calculate Effect Sizes and Outcome Measures

rcalc()

Calculate the Variance-Covariance of Dependent Correlation Coefficients

vcalc()

Construct or Approximate the Variance-Covariance Matrix of Dependent Effect Sizes or Outcomes

Model Fitting

Main model fitting functions.

rma.uni() rma()

Meta-Analysis via Linear (Mixed-Effects) Models

rma.mh()

Meta-Analysis via the Mantel-Haenszel Method

rma.peto()

Meta-Analysis via Peto's Method

rma.glmm()

Meta-Analysis via Generalized Linear (Mixed-Effects) Models

rma.mv()

Meta-Analysis via Multivariate/Multilevel Linear (Mixed-Effects) Models

Plots / Figures

Functions for creating various types of plots and figures.

funnel()

Funnel Plots

forest()

Forest Plots

forest(<default>)

Forest Plots (Default Method)

forest(<rma>)

Forest Plots (Method for 'rma' Objects)

forest(<cumul.rma>)

Forest Plots (Method for 'cumul.rma' Objects)

addpoly()

Add Polygons to Forest Plots

addpoly(<default>)

Add Polygons to Forest Plots (Default Method)

addpoly(<rma>)

Add Polygons to Forest Plots (Method for 'rma' Objects)

addpoly(<predict.rma>)

Add Polygons to Forest Plots (Method for 'predict.rma' Objects)

regplot() points(<regplot>)

Scatter Plots / Bubble Plots

baujat()

Baujat Plots for 'rma' Objects

labbe()

L'Abbe Plots for 'rma' Objects

radial() galbraith()

Radial (Galbraith) Plots for 'rma' Objects

llplot()

Plot of Likelihoods for Individual Studies

gosh()

GOSH Plots for 'rma' Objects

plot(<gosh.rma>)

Plot Method for 'gosh.rma' Objects

plot(<permutest.rma.uni>)

Plot Method for 'permutest.rma.uni' Objects

plot(<rma.uni>) plot(<rma.mh>) plot(<rma.peto>) plot(<rma.glmm>)

Plot Method for 'rma' Objects

plot(<cumul.rma>)

Plot Method for 'cumul.rma' Objects

plot(<infl.rma.uni>)

Plot Method for 'infl.rma.uni' Objects

profile(<rma.uni>) profile(<rma.mv>) profile(<rma.uni.selmodel>) profile(<rma.ls>) print(<profile.rma>) plot(<profile.rma>)

Profile Likelihood Plots for 'rma' Objects

plot(<rma.uni.selmodel>)

Plot Method for 'plot.rma.uni.selmodel' Objects

qqnorm(<rma.uni>) qqnorm(<rma.mh>) qqnorm(<rma.peto>) qqnorm(<rma.glmm>) qqnorm(<rma.mv>)

Normal QQ Plots for 'rma' Objects

Publication Bias

Functions related to publication bias.

regtest()

Regression Test for Funnel Plot Asymmetry

ranktest()

Rank Correlation Test for Funnel Plot Asymmetry

trimfill()

Trim and Fill Analysis for 'rma.uni' Objects

selmodel()

Selection Models

hc()

Meta-Analysis based on the Method by Henmi and Copas (2010)

fsn()

Fail-Safe N Analysis (File Drawer Analysis)

tes() print(<tes>)

Test of Excess Significance

Inference Methods

Functions for standard and advanced methods for drawing inferences based on meta-analytic data and for assessing the model fit.

anova(<rma>)

Likelihood Ratio and Wald-Type Tests for 'rma' Objects

confint(<rma.uni>) confint(<rma.mh>) confint(<rma.peto>) confint(<rma.glmm>) confint(<rma.mv>) confint(<rma.uni.selmodel>) confint(<rma.ls>)

Confidence Intervals for 'rma' Objects

permutest()

Permutation Tests for 'rma.uni' Objects

robust()

Cluster-Robust Tests and Confidence Intervals for 'rma' Objects

cumul()

Cumulative Meta-Analysis for 'rma' Objects

fitted(<rma>)

Fitted Values for 'rma' Objects

predict(<rma>) predict(<rma.ls>)

Predicted Values for 'rma' Objects

ranef(<rma.uni>) ranef(<rma.mv>)

Best Linear Unbiased Predictions for 'rma.uni' and 'rma.mv' Objects

blup()

Best Linear Unbiased Predictions for 'rma.uni' Objects

fitstats() logLik(<rma>) deviance(<rma>) AIC(<rma>) BIC(<rma>)

Fit Statistics and Information Criteria for 'rma' Objects

simulate(<rma>)

Simulate Method for 'rma' Objects

update(<rma>)

Model Updating for 'rma' Objects

vif() print(<vif.rma>)

Variance Inflation Factors for 'rma' Objects

Model Diagnostics

Functions for identifying outliers and/or influential studies and for conducting sensitivity analyses.

residuals(<rma>) rstandard(<rma.uni>) rstandard(<rma.mh>) rstandard(<rma.peto>) rstandard(<rma.mv>) rstudent(<rma.uni>) rstudent(<rma.mh>) rstudent(<rma.peto>) rstudent(<rma.mv>)

Residual Values based on 'rma' Objects

influence(<rma.uni>) print(<infl.rma.uni>) cooks.distance(<rma.uni>) dfbetas(<rma.uni>) hatvalues(<rma.uni>)

Model Diagnostics for 'rma.uni' Objects

cooks.distance(<rma.mv>) dfbetas(<rma.mv>) hatvalues(<rma.mv>)

Model Diagnostics for 'rma.mv' Objects

weights(<rma.uni>) weights(<rma.mh>) weights(<rma.peto>) weights(<rma.glmm>) weights(<rma.mv>)

Compute Weights for 'rma' Objects

leave1out()

Leave-One-Out Diagnostics for 'rma' Objects

Print methods.

print(<rma.uni>) print(<rma.mh>) print(<rma.peto>) print(<rma.glmm>) print(<rma.mv>) summary(<rma>) print(<summary.rma>)

Print and Summary Methods for 'rma' Objects

print(<escalc>) summary(<escalc>)

Print and Summary Methods for 'escalc' Objects

print(<anova.rma>) print(<list.anova.rma>)

Print Method for 'anova.rma' and 'list.anova.rma' Objects

print(<confint.rma>) print(<list.confint.rma>)

Print Methods for 'confint.rma' and 'list.confint.rma' Objects

print(<fsn>)

Print Method for 'fsn' Objects

print(<gosh.rma>)

Print Method for 'gosh.rma' Objects

print(<hc.rma.uni>)

Print Method for 'hc.rma.uni' Objects

print(<list.rma>)

Print method for 'list.rma' Objects

print(<matreg>)

Print Method for 'matreg' Objects

print(<permutest.rma.uni>)

Print Method for 'permutest.rma.uni' Objects

print(<ranktest>)

Print Method for 'ranktest' Objects

print(<regtest>)

Print Method for 'regtest' Objects

Extractor Functions

Functions to extract various elements from model objects.

coef(<rma>) coef(<summary.rma>)

Extract the Model Coefficients and Coefficient Table from 'rma' and 'summary.rma' Objects

coef(<permutest.rma.uni>)

Extract the Model Coefficient Table from 'permutest.rma.uni' Objects

vcov(<rma>)

Extract Various Types of Variance-Covariance Matrices from 'rma' Objects

model.matrix(<rma>)

Extract the Model Matrix from 'rma' Objects

formula(<rma>)

Extract the Model Formula from 'rma' Objects

Convenience Functions

Some miscellaneous convenience functions.

bldiag()

Construct Block Diagonal Matrix

blsplit()

Split Block Diagonal Matrix

dfround()

Round Variables in a Data Frame

replmiss()

Replace Missing Values in a Vector

to.long()

Convert Data from Vector to Long Format

to.wide()

Convert Data from a Long to a Wide Format

to.table()

Convert Data from Vector to Table Format

contrmat()

Construct Contrast Matrix for Two-Group Comparisons

reporter()

Dynamically Generated Analysis Reports for 'rma.uni' Objects

matreg()

Fit Regression Models based on Correlation and Covariance Matrices

vec2mat()

Convert a Vector into a Square Matrix

aggregate(<escalc>)

Aggregate Multiple Effect Sizes or Outcomes Within Studies

metafor.news()

Read News File of the Metafor Package

transf.rtoz() transf.ztor() transf.logit() transf.ilogit() transf.arcsin() transf.iarcsin() transf.pft() transf.ipft() transf.ipft.hm() transf.isqrt() transf.irft() transf.iirft() transf.ahw() transf.iahw() transf.abt() transf.iabt() transf.ztor.int() transf.exp.int() transf.ilogit.int() transf.dtou1() transf.dtou2() transf.dtou3() transf.dtorpb() transf.dtobesd() transf.dtomd() transf.logortord() transf.logortorr()

Transformation Functions

Other Methods

Other method functions.

`[`(<escalc>) cbind(<escalc>) rbind(<escalc>)

Methods for 'escalc' Objects

as.data.frame(<list.rma>) as.matrix(<list.rma>) `[`(<list.rma>) head(<list.rma>) tail(<list.rma>) `$<-`(<list.rma>)

Methods for 'list.rma' Objects

as.data.frame(<confint.rma>) as.data.frame(<list.confint.rma>)

Methods for 'confint.rma' Objects

Miscellaneous Documentation

Miscellaneous documentation.

misc-models

Fixed-Effects and Random-Effects Models in Meta-Analysis

misc-recs

Some Recommended Practices

misc-options

Miscellaneous Options and Features