print.meta: Print meta-analysis results

View source: R/print.meta.R

print.metaR Documentation

Print meta-analysis results

Description

Print method for objects of class meta.

R function cilayout can be utilised to change the layout to print confidence intervals (both in printout from print.meta and print.summary.meta function as well as in forest plots). The default layout is "[lower; upper]". Another popular layout is "(lower - upper)" which is used throughout an R session by using R command cilayout("(", " - ").

Argument pscale can be used to rescale single proportions or risk differences, e.g. pscale = 1000 means that proportions are expressed as events per 1000 observations. This is useful in situations with (very) low event probabilities.

Argument irscale can be used to rescale single rates or rate differences, e.g. irscale = 1000 means that rates are expressed as events per 1000 time units, e.g. person-years. This is useful in situations with (very) low rates. Argument irunit can be used to specify the time unit used in individual studies (default: "person-years"). This information is printed in summaries and forest plots if argument irscale is not equal to 1.

Usage

## S3 method for class 'meta'
print(
  x,
  common = x$common,
  random = x$random,
  prediction = x$prediction,
  overall = x$overall,
  overall.hetstat = x$overall.hetstat,
  prediction.subgroup = x$prediction.subgroup,
  backtransf = x$backtransf,
  pscale = x$pscale,
  irscale = x$irscale,
  irunit = x$irunit,
  subgroup.name = x$subgroup.name,
  sep.subgroup = x$sep.subgroup,
  nchar.subgroup = 35,
  sort.overall = NULL,
  sort.tau = NULL,
  sort.het = NULL,
  sort.Q = NULL,
  header = TRUE,
  test = NULL,
  print = NULL,
  digits = NULL,
  big.mark = gs("big.mark"),
  scientific.pval = gs("scientific.pval"),
  zero.pval = gs("zero.pval"),
  JAMA.pval = gs("JAMA.pval"),
  text.tau2 = gs("text.tau2"),
  text.tau = gs("text.tau"),
  text.I2 = gs("text.I2"),
  text.Rb = gs("text.Rb"),
  details.methods = gs("details"),
  warn.backtransf = FALSE,
  func.backtransf = x$func.backtransf,
  warn.deprecated = gs("warn.deprecated"),
  ...
)

cilayout(
  bracket = gs("CIbracket"),
  separator = gs("CIseparator"),
  lower.blank = gs("CIlower.blank"),
  upper.blank = gs("CIupper.blank")
)

Arguments

x

An object of class meta.

common

A logical indicating whether results for common effect meta-analysis should be printed.

random

A logical indicating whether results for random effects meta-analysis should be printed.

prediction

A logical indicating whether a prediction interval should be printed.

overall

A logical indicating whether overall summaries should be reported. This argument is useful in a meta-analysis with subgroups if overall results should not be reported.

overall.hetstat

A logical value indicating whether to print heterogeneity measures for overall treatment comparisons. This argument is useful in a meta-analysis with subgroups if heterogeneity statistics should only be printed on subgroup level.

prediction.subgroup

A single logical or logical vector indicating whether / which prediction intervals should be printed for subgroups.

backtransf

A logical indicating whether printed results should be back transformed. If backtransf=TRUE, results for sm="OR" are printed as odds ratios rather than log odds ratios and results for sm="ZCOR" are printed as correlations rather than Fisher's z transformed correlations, for example.

pscale

A numeric giving scaling factor for printing of single event probabilities or risk differences, i.e. if argument sm is equal to "PLOGIT", "PLN", "PRAW", "PAS", "PFT", or "RD".

irscale

A numeric defining a scaling factor for printing of single incidence rates or incidence rate differences, i.e. if argument sm is equal to "IR", "IRLN", "IRS", "IRFT", or "IRD".

irunit

A character specifying the time unit used to calculate rates, e.g. person-years.

subgroup.name

A character string with a name for the grouping variable.

sep.subgroup

A character string defining the separator between label and levels of grouping variable.

nchar.subgroup

A numeric specifying the number of characters to print from subgroup labels.

sort.overall

An optional vector used to sort meta-analysis results.

sort.tau

An optional vector used to sort estimators of the between-study heterogeneity variance.

sort.het

An optional vector used to sort heterogeneity statistics.

sort.Q

An optional vector used to sort test of heterogeneity.

header

A logical indicating whether information on title of meta-analysis, comparison and outcome should be printed at the beginning of the printout.

test

A named list controlling tests for subgroup differences; see meta-formatting. Defaults follow the setting in x and the models selected for printing.

print

A named list controlling displayed information; see meta-formatting. Heterogeneity settings default to the corresponding gs("print.*") settings; CMH and subgroup.name default to the corresponding settings in x.

digits

A named list controlling rounding; see meta-formatting. A scalar value is also accepted. The main default is gs("digits"); P-value defaults are max(gs("digits.pval"), 2) and max(gs("digits.pval.Q"), 2).

big.mark

A character used as thousands separator.

scientific.pval

A logical specifying whether p-values should be printed in scientific notation, e.g., 1.2345e-01 instead of 0.12345.

zero.pval

A logical specifying whether p-values should be printed with a leading zero.

JAMA.pval

A logical specifying whether p-values for test of overall effect should be printed according to JAMA reporting standards.

text.tau2

Text printed to identify between-study variance \tau^2.

text.tau

Text printed to identify \tau, the square root of the between-study variance \tau^2.

text.I2

Text printed to identify heterogeneity statistic I^2.

text.Rb

Text printed to identify heterogeneity statistic R_b.

details.methods

A logical specifying whether details on statistical methods should be printed.

warn.backtransf

Deprecated argument (ignored).

func.backtransf

A function used to back-transform results.

warn.deprecated

A logical indicating whether warnings should be printed if deprecated arguments are used.

...

Additional arguments, including individual test.*, print.*, and digits.* settings. Remaining arguments are passed to prmatrix.

bracket

A character with bracket symbol to print lower confidence interval: "[", "(", "{", "".

separator

A character string with information on separator between lower and upper confidence interval.

lower.blank

A logical indicating whether blanks between left bracket and lower confidence limit should be printed.

upper.blank

A logical indicating whether blanks between separator and upper confidence limit should be printed.


meta documentation built on Nov. 14, 2026, 5:09 p.m.