Package Introduction

Introduction to the package.

metafor-package metafor

metafor: A Meta-Analysis Package for R

Effect Sizes / Outcome Measures / Data Prep

Functions to compute various types of effect sizes / outcome measures and for data preparation.

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

conv.wald()

Convert Wald-Type Confidence Intervals and Tests to Sampling Variances

conv.delta()

Transform Observed Effect Sizes or Outcomes and their Sampling Variances using the Delta Method

conv.fivenum()

Estimate Means and Standard Deviations from Five-Number Summary Values

conv.2x2()

Reconstruct Cell Frequencies of \(2 \times 2\) Tables

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(<rma.mv>)

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

plot(<vif.rma>)

Plot Method for 'vif.rma' 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 for detecting, assessing the impact of, and correcting for publication bias (funnel plot asymmetry / small-study effects).

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 drawing inferences based on meta-analytic models 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

Model Diagnostics

Functions for identifying outliers / influential studies, sensitivity analyses, and checking for multicollinearity.

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

vif() print(<vif.rma>)

Variance Inflation Factors 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 Methods 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(<permutest.rma.uni>)

Print Method for 'permutest.rma.uni' Objects

print(<ranktest>)

Print Method for 'ranktest' Objects

print(<regtest>)

Print Method for 'regtest' Objects

print(<matreg>) summary(<matreg>) print(<summary.matreg>)

Print and Summary Methods for 'matreg' Objects

print(<deltamethod>)

Print Method for 'deltamethod' 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

se()

Extract the Standard Errors from 'rma' Objects

model.matrix(<rma>)

Extract the Model Matrix from 'rma' Objects

formula(<rma>)

Extract the Model Formula from 'rma' Objects

coef(<matreg>) vcov(<matreg>)

Extract the Model Coefficients and Variance-Covariance Matrix from 'matreg' Objects

coef(<deltamethod>) vcov(<deltamethod>)

Extract the Estimates and Variance-Covariance Matrix from 'deltamethod' Objects

Convenience Functions

Miscellaneous convenience functions.

getmfopt() setmfopt()

Getting and Setting Package Options

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 a Correlation and Covariance Matrix

vec2mat()

Convert a Vector into a Square Matrix

deltamethod()

Apply the (Multivariate) Delta Method

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.r2toz() transf.ztor2() transf.ztor.int() transf.exp.int() transf.ilogit.int() transf.ztor.mode() transf.exp.mode() transf.ilogit.mode() transf.dtou1() transf.dtou2() transf.dtou3() transf.dtoovl() transf.dtocles() transf.dtocliffd() transf.dtobesd() transf.dtomd() transf.dtorpb() transf.dtorbis() transf.rpbtorbis() transf.rtorpb() transf.rtod() transf.rpbtod() transf.lnortord() transf.lnortorr() transf.lnortod.norm() transf.lnortod.logis() transf.dtolnor.norm() transf.dtolnor.logis() transf.lnortortet.pearson() transf.lnortortet.digby()

Transformation Functions

fmtp() fmtp2() fmtx() fmtt()

Formatter Functions

emmprep()

Create a Reference Grid for the 'emmeans' Function

pairmat()

Construct a Pairwise Contrast Matrix for 'rma' Objects

Other Methods

Other method functions.

`[`(<escalc>) `$<-`(<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

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

Methods for 'anova.rma' Objects

as.data.frame(<vif.rma>)

Methods for 'vif.rma' Objects

Miscellaneous Documentation

Miscellaneous documentation on models, recommendations, and options.

misc-models misc_models

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

misc-recs misc_recs

Some Recommended Practices

misc-options misc_options

Miscellaneous Options and Features