Learn R Programming

metafor (version 1.9-4)

print.rma.uni: Print and Summary Methods for 'rma' Objects

Description

Print and summary methods for objects of class "rma.uni", "rma.mh", "rma.peto", "rma.glmm", and "rma.glmm".

Usage

## S3 method for class 'rma.uni':
print(x, digits, showfit=FALSE, signif.stars=getOption("show.signif.stars"),
      signif.legend=signif.stars, ...)

## S3 method for class 'rma.mh':
print(x, digits, showfit=FALSE, \dots)

## S3 method for class 'rma.peto':
print(x, digits, showfit=FALSE, \dots)

## S3 method for class 'rma.glmm':
print(x, digits, showfit=FALSE, signif.stars=getOption("show.signif.stars"),
      signif.legend=signif.stars, ...)

## S3 method for class 'rma.mv':
print(x, digits, showfit=FALSE, signif.stars=getOption("show.signif.stars"),
      signif.legend=signif.stars, ...)

## S3 method for class 'rma':
summary(object, digits, showfit=TRUE, \dots)

## S3 method for class 'summary.rma':
print(x, digits, showfit=TRUE, signif.stars=getOption("show.signif.stars"),
      signif.legend=signif.stars, ...)

Arguments

x
an object of class "rma.uni", "rma.mh", "rma.peto", "rma.glmm", "rma.mv", or "summary.rma" (for print).
object
an object of class "rma" (for summary).
digits
integer specifying the number of decimal places to which the printed results should be rounded (if unspecified, the default is to take the value from the object).
showfit
logical indicating whether the fit statistics and information criteria should be printed (default is FALSE for print and TRUE for summary).
signif.stars
logical indicating whether p-values should be encoded visually with significance stars. Defaults to the show.signif.stars slot of options.
signif.legend
logical indicating whether the legend for the significance stars should be printed. Defaults to the value for signif.stars.
...
other arguments.

Details

The output includes:
  • the log-likelihood, deviance, AIC, BIC, and AICc value (when settingshowfit=TRUEor by default forsummary).
  • for objects of class"rma.uni"and"rma.glmm", the amount of (residual) heterogeneity in the random/mixed-effects model (i.e., the estimate oflatex{$\tau^2$
html{$\tau²$}text{$\tau^2$} and its square root). Suppressed for fixed-effects models. The (asymptotic) standard error of the estimate of latex{$\tau^2$}html{$\tau²$}text{$\tau^2$} is also provided (where possible). for objects of "rma.mv", a table providing information about the variance components and correlations in the model. For latex{$\sigma^2$}html{$\sigma²$}text{$\sigma^2$} components, the estimate and its square root are provided, in addition to the number of values/levels, whether the component was fixed or estimated, and the name of the grouping variable/factor. If the R argument was used to specify known correlation matrices, this is also indicated. For models with an ~ inner | outer formula term, the name of the inner and outer grouping variable/factor are given and the number of values/levels of these variables/factors. In addition, for each latex{$\tau^2$}html{$\tau²$}text{$\tau^2$} component, the estimate and its square root are provided, the number of effects or outcomes observed at each level of the inner grouping variable/factor (only for struct="HCS", struct="HAR", and struct="UN"), and whether the component was fixed or estimated. Finally, either the estimate of $\rho$ (for struct="CS", struct="AR", struct="HAR", or struct="HCS") or the entire estimated correlation matrix (for struct="UN") between the levels of the inner grouping variable/factor is provided, again with information whether a particular correlation was fixed or estimated, and how often each combination of levels of the inner grouping variable/factor was observed across the levels of the outer grouping variable/factor. for objects of class "rma.uni" and "rma.glmm", the latex{$I^2$}html{$I²$}text{$I^2$} statistic. For a random-effects model, latex{$I^2$}html{$I²$}text{$I^2$} estimates (in percent) how much of the total variability in the effect size estimates (which is composed of heterogeneity plus sampling variability) can be attributed to heterogeneity among the true effects. For a mixed-effects model, latex{$I^2$}html{$I²$}text{$I^2$} estimates how much of the unaccounted variability (which is composed of residual heterogeneity plus sampling variability) can be attributed to residual heterogeneity. See Note for how latex{$I^2$}html{$I²$}text{$I^2$} is computed. for objects of class "rma.uni" and "rma.glmm", the latex{$H^2$}html{$H²$}text{$H^2$} statistic. For a random-effects model, latex{$H^2$}html{$H²$}text{$H^2$} estimates the ratio of the total amount of variability in the effect size estimates to the amount of sampling variability. For a mixed-effects model, latex{$H^2$}html{$H²$}text{$H^2$} estimates the ratio of the unaccounted variability in the effect size estimates to the amount of sampling variability. See Note for how latex{$H^2$}html{$H²$}text{$H^2$} is computed. for objects of class "rma.uni", the latex{$R^2$}html{$R²$}text{$R^2$} statistic, which estimates the amount of heterogeneity accounted for by the moderators included in the model and can be regarded as a pseudo latex{$R^2$}html{$R²$}text{$R^2$} statistic (Raudenbush, 2009). Only provided when fitting a mixed-effects models (i.e., for models including moderators). This is suppressed (and set to NULL) for models without moderators, fixed-effects models, or if the model does not contain an intercept. NA if the amount of heterogeneity is equal to zero to begin with. See Note for how latex{$R^2$}html{$R²$}text{$R^2$} is computed. for objects of class "rma.glmm", the amount of study level variability (only when using a model that models study level differences as a random effect). the results of the test for (residual) heterogeneity. This is the usual $Q$-test for heterogeneity when not including moderators in the model and the $Q_E$-test for residual heterogeneity when moderators are included. For objects of class "rma.glmm", the results from a Wald-type test and a likelihood ratio test are provided (see rma.glmm for more details). the results of the omnibus (Wald-type) test of the coefficients in the model (the indices of the coefficients tested are also indicated). Suppressed if the model includes only one coefficient (e.g., only an intercept, like in the fixed- and random-effects model). a table with the estimated coefficients, corresponding standard errors, test statistics, p-values, and confidence interval bounds. the Cochran-Mantel-Haenszel test and Tarone's test for heterogeneity (only when analyzing odds ratios using the Mantel-Haenszel method, i.e., "rma.mh"). The print functions do not return an object. The summary function returns the object passed to it (with additional class "summary.rma"). For random-effects models, the latex{$I^2$}html{$I²$}text{$I^2$} statistic is computed with latex{$$I^2 = 100% \times \frac{\hat{\tau}^2}{\hat{\tau}^2 + s^2},$$}html{$$I² = 100 Therefore, depending on the estimator of \if{latex}{\eqn{\tau^2}}\if{html}{\eqn{\tau²}}\if{text}{\eqn{\tau^2}} used, the values of \if{latex}{\eqn{I^2}}\if{html}{\eqn{I²}}\if{text}{\eqn{I^2}} and \if{latex}{\eqn{H^2}}\if{html}{\eqn{H²}}\if{text}{\eqn{H^2}} will change. For random-effects models, \if{latex}{\eqn{I^2}}\if{html}{\eqn{I²}}\if{text}{\eqn{I^2}} and \if{latex}{\eqn{H^2}}\if{html}{\eqn{H²}}\if{text}{\eqn{H^2}} are typically computed in practice with \if{latex}{\eqn{I^2 = (Q-(k-1))/Q}}\if{html}{\eqn{I² = (Q-(k-1))/Q}}\if{text}{\eqn{I^2 = (Q-(k-1))/Q}} and \if{latex}{\eqn{H^2 = Q/(k-1)}}\if{html}{\eqn{H² = Q/(k-1)}}\if{text}{\eqn{H^2 = Q/(k-1)}}, where \eqn{Q} denotes the statistic for the test of heterogeneity and \eqn{k} the number of studies (i.e., observed effects or outcomes) included in the meta-analysis. The equations used in the metafor package to compute these statistics are more general and have the advantage that the values of \if{latex}{\eqn{I^2}}\if{html}{\eqn{I²}}\if{text}{\eqn{I^2}} and \if{latex}{\eqn{H^2}}\if{html}{\eqn{H²}}\if{text}{\eqn{H^2}} will be consistent with the estimated value of \if{latex}{\eqn{\tau^2}}\if{html}{\eqn{\tau²}}\if{text}{\eqn{\tau^2}} (i.e., if \if{latex}{\eqn{\hat{\tau}^2 = 0}}\if{html}{\eqn{hat{\tau}² = 0}}\if{text}{\eqn{hat(\tau)^2 = 0}}, then \if{latex}{\eqn{I^2 = 0}}\if{html}{\eqn{I² = 0}}\if{text}{\eqn{I^2 = 0}} and \if{latex}{\eqn{H^2 = 1}}\if{html}{\eqn{H² = 1}}\if{text}{\eqn{H^2 = 1}} and if \if{latex}{\eqn{\hat{\tau}^2 > 0}}\if{html}{\eqn{hat{\tau}² > 0}}\if{text}{\eqn{hat(\tau)^2 > 0}}, then \if{latex}{\eqn{I^2 > 0}}\if{html}{\eqn{I² > 0}}\if{text}{\eqn{I^2 > 0}} and \if{latex}{\eqn{H^2 > 1}}\if{html}{\eqn{H² > 1}}\if{text}{\eqn{H^2 > 1}}). The two definitions of \if{latex}{\eqn{I^2}}\if{html}{\eqn{I²}}\if{text}{\eqn{I^2}} and \if{latex}{\eqn{H^2}}\if{html}{\eqn{H²}}\if{text}{\eqn{H^2}} actually coincide when using the DerSimonian-Laird estimator of \if{latex}{\eqn{\tau^2}}\if{html}{\eqn{\tau²}}\if{text}{\eqn{\tau^2}} (i.e., the commonly used equations are actually special cases of the more general definitions given above). Therefore, if you prefer the more conventional definitions of these statistics, use \code{method="DL"} when fitting the random/mixed-effects model with the \code{\link{rma.uni}} function. The pseudo \if{latex}{\eqn{R^2}}\if{html}{\eqn{R²}}\if{text}{\eqn{R^2}} statistic (Raudenbush, 2009) is computed with \if{latex}{\deqn{R^2 = \frac{\hat{\tau}_{RE}^2 - \hat{\tau}_{ME}^2}{\hat{\tau}_{RE}^2},}}\if{html}{\deqn{R² = (hat(\tau)²_RE - hat(\tau)²_ME) / hat(\tau)²_RE,}}\if{text}{\deqn{R^2 = (hat(\tau)^2_RE - hat(\tau)^2_ME) / hat(\tau)^2_RE,}} where \if{latex}{\eqn{\hat{\tau}_{RE}^2}}\if{html}{\eqn{hat(\tau)²_RE}}\if{text}{\eqn{hat(\tau)^2_RE}} denotes the estimated value of \if{latex}{\eqn{\tau^2}}\if{html}{\eqn{\tau²}}\if{text}{\eqn{\tau^2}} based on the random-effects model (i.e., the total amount of heterogeneity) and \if{latex}{\eqn{\hat{\tau}_{ME}^2}}\if{html}{\eqn{hat(\tau)²_ME}}\if{text}{\eqn{hat(\tau)^2_ME}} denotes the estimated value of \if{latex}{\eqn{\tau^2}}\if{html}{\eqn{\tau²}}\if{text}{\eqn{\tau^2}} based on the mixed-effects model (i.e., the residual amount of heterogeneity). It can happen that \if{latex}{\eqn{\hat{\tau}_{RE}^2 < \hat{\tau}_{ME}^2}}\if{html}{\eqn{hat(\tau)²_RE < hat(\tau)²_ME}}\if{text}{\eqn{hat(\tau)^2_RE < hat(\tau)^2_ME}}, in which case \if{latex}{\eqn{R^2}}\if{html}{\eqn{R²}}\if{text}{\eqn{R^2}} is set to zero. Again, the value of \if{latex}{\eqn{R^2}}\if{html}{\eqn{R²}}\if{text}{\eqn{R^2}} will change depending on the estimator of \if{latex}{\eqn{\tau^2}}\if{html}{\eqn{\tau²}}\if{text}{\eqn{\tau^2}} used. Also note that this statistic is only computed when the mixed-effects model includes an intercept (so that the random-effects model is clearly nested within the mixed-effects model). You can also use the \code{\link{anova.rma.uni}} function to compute \if{latex}{\eqn{R^2}}\if{html}{\eqn{R²}}\if{text}{\eqn{R^2}} for any two models that are known to be nested.$$ [object Object] Higgins, J. P. T., & Thompson, S. G. (2002). Quantifying heterogeneity in a meta-analysis. Statistics in Medicine, 21, 1539--1558. Raudenbush, S. W. (2009). Analyzing effect sizes: Random effects models. In H. Cooper, L. V. Hedges, & J. C. Valentine (Eds.), The handbook of research synthesis and meta-analysis (2nd ed., pp. 295--315). New York: Russell Sage Foundation. Viechtbauer, W. (2010). Conducting meta-analyses in R with the metafor package. Journal of Statistical Software, 36(3), 1--48. http://www.jstatsoft.org/v36/i03/. rma.uni, rma.mh, rma.peto, rma.glmm, rma.mv print