View source: R/print.metabind.R
| print.metabind | R Documentation |
Print method for objects of class metabind.
## S3 method for class 'metabind'
print(
x,
common = !is.null(x$common),
random = !is.null(x$random),
prediction = !is.null(x$predict),
overall = common || random,
backtransf = x$backtransf,
print = NULL,
digits = NULL,
lab.NA = ".",
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"),
details.methods = gs("details"),
...
)
x |
An object of class |
common, random, prediction |
Logical values selecting common effect estimates, random effects estimates, and prediction intervals to print. |
overall |
A logical indicating whether overall summaries should be
printed. No additional overall summaries are printed for included
meta-analyses without subgroup analyses.
For subgroup analyses, selected overall effects can be shared
independently of heterogeneity. Shared heterogeneity is printed only
when its values and settings also agree across included meta-analyses.
Subgroup-difference statistics are headed |
backtransf |
A logical indicating whether results should be back-transformed. Different summary measures require back-transformation. |
print |
A named list controlling displayed information; see
|
digits |
A named list controlling rounding; see
|
lab.NA |
Label for missing values. |
big.mark |
Character used as thousands separator. |
scientific.pval, zero.pval, JAMA.pval |
Logical values controlling the formatting of P values. |
text.tau2 |
Text printed to identify between-study variance
|
text.tau |
Text printed to identify |
text.I2 |
Text printed to identify heterogeneity statistic I |
details.methods |
A logical specifying whether details on statistical methods should be printed. |
... |
Additional formatting arguments, including individual
|
Unless listed below, defaults for supported formatting elements are
described in meta-formatting.
| Element | Default |
print$stat | TRUE |
print$I2, print$tau2 | Corresponding gs("print.*") setting |
print$tau, print$Q | Corresponding gs("print.*") setting |
print$I2.ci, print$tau2.ci | FALSE |
print$tau.ci | FALSE |
print$pval.Q | Follows print$Q |
print$subgroup.name | Whether subgroup results are present |
The named list print controls which columns are shown.
Columns func, sm, method, and method.interval
are selected automatically when their values differ within a result table.
Confidence-level columns level.ma, level.predict, and
level.hetstat are shown when the corresponding levels differ.
Columns backtransf and args.backtransf are shown when
custom back-transformation functions and arguments are supplied;
arguments are shown only with the function column.
Invisibly returns NULL.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
metabind, forest.metabind,
settings.meta
data(Fleiss1993bin)
ma1 <- metabin(d.asp, n.asp, d.plac, n.plac,
data = Fleiss1993bin, studlab = study, sm = "RR", method = "I")
ma2 <- update(ma1, method = "MH", random = FALSE)
#
mb12 <- metabind(ma1, ma2, name = c("IV method", "MH method"))
# Printout for individual meta-analyses
#
ma1
ma2
# Standard printout
#
mb12
# Print confidence intervals for tau^2 and tau and
# suppress column on meta-analysis method
#
print(mb12, print = list(tau2.ci = TRUE, tau.ci = TRUE, method = FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.