| blup.meta | R Documentation |
meta objectCalculate best linear unbiased predictors (BLUPs) for meta-analysis object created with R package meta.
## S3 method for class 'meta'
blup(x, level = x$level, backtransf = x$backtransf, ...)
## S3 method for class 'blup.meta'
print(
x,
backtransf = attr(x, "x")$backtransf,
print = NULL,
digits = NULL,
big.mark = gs("big.mark"),
se = FALSE,
details = gs("details"),
...
)
## S3 method for class 'blup.meta'
estimates(
x,
se = FALSE,
backtransf = attr(x, "x")$backtransf,
digits = gs("digits"),
digits.se = gs("digits.se"),
digits.tau2 = gs("digits.tau2"),
digits.tau = gs("digits.tau"),
writexl = !missing(path),
path = "estimates_blup.xlsx",
overwrite = FALSE,
...
)
## S3 method for class 'estimates.blup.meta'
print(
x,
digits = NULL,
big.mark = gs("big.mark"),
details = gs("details"),
...
)
x |
An object of class |
level |
The level used to calculate prediction intervals for BLUPs. |
backtransf |
A logical indicating whether BLUPs should be
back transformed. If |
... |
Additional arguments (passed on to |
print |
A named list controlling displayed information in
|
digits |
A named list controlling rounding in print methods; see
|
big.mark |
A character used as thousands separator. |
se |
A logical indicating whether standard errors should be printed / extracted. |
details |
A logical specifying whether details on statistical methods should be printed. |
digits.se |
Minimal number of significant digits for standard errors. |
digits.tau2 |
Minimal number of significant digits for
between-study variance |
digits.tau |
Minimal number of significant digits for
|
writexl |
A logical indicating whether an Excel file should be created (R package writexl must be available). |
path |
A character string specifying the filename of the Excel file. |
overwrite |
A logical indicating whether an existing Excel file should be overwritten. |
The print methods accept a named digits list with elements
digits, se, tau2, and tau; see
meta-formatting. A scalar rounds effects and limits only.
The BLUP printer uses gs("digits") for effect rounding and
gs("print.tau2") and gs("print.tau") for heterogeneity columns.
The estimates printer defaults to rounding stored in the object and does
not back-transform again.
Extraction with estimates.blup.meta still uses scalar rounding arguments.
Data frame with variables
studlab |
Study label |
blup |
estimated best linear unbiased predictor |
se.blup |
standard error (only if argument |
lower |
lower prediction limits |
upper |
upper prediction limits |
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
metabin
## Not run:
if (requireNamespace("metadat", quietly = TRUE)) {
data(dat.bcg, package = "metadat")
ma <- metabin(tpos, tpos + tneg, cpos, cpos + cneg,
data = dat.bcg, studlab = paste(author, year), method = "Inverse")
summary(ma)
blup(ma)
# Save estimates in Excel file (R package 'writexl' must be available)
if (requireNamespace("writexl", quietly = TRUE))
estimates(blup(ma), path = "blup_ma.xlsx")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.