meta
objectCalculate best linear unbiased predictors (BLUPs) for meta-analysis object created with R package meta.
# S3 method for meta
blup(x, level = x$level, backtransf = x$backtransf, ...)# S3 method for blup.meta
print(
x,
backtransf = attr(x, "x")$backtransf,
digits = gs("digits"),
digits.se = gs("digits.se"),
digits.tau2 = gs("digits.tau2"),
digits.tau = gs("digits.tau"),
big.mark = gs("big.mark"),
se = FALSE,
print.tau2 = gs("print.tau2"),
print.tau = gs("print.tau"),
details = gs("details"),
...
)
# S3 method for 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 estimates.blup.meta
print(x, big.mark = gs("big.mark"), details = gs("details"), ...)
Data frame with variables
Study label
estimated best linear unbiased predictor
standard error (only if argument backtransf = FALSE
)
lower prediction limits
upper prediction limits
An object of class meta
, blup.meta
, or
estimates.blup.meta
.
The level used to calculate prediction intervals for BLUPs.
A logical indicating whether BLUPs should be
back transformed. If backtransf = TRUE
, results for
sm = "OR"
will be odds ratios rather than log odds ratios,
for example.
Additional arguments (passed on to prmatrix
).
Minimal number of significant digits, see
print.default
.
Minimal number of significant digits for standard errors.
Minimal number of significant digits for
between-study variance \(\tau^2\), see print.default
.
Minimal number of significant digits for \(\tau\), the square root of the between-study variance \(\tau^2\).
A character used as thousands separator.
A logical indicating whether standard errors should be printed / extracted.
A logical specifying whether between-study variance \(\tau^2\) should be printed.
A logical specifying whether \(\tau\), the square root of the between-study variance \(\tau^2\), should be printed.
A logical specifying whether details on statistical methods should be printed.
A logical indicating whether an Excel file should be created (R package writexl must be available).
A character string specifying the filename of the Excel file.
A logical indicating whether an existing Excel file should be overwritten.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
data("dat.bcg", package = "metadat")
m1 <- metabin(tpos, tpos + tneg, cpos, cpos + cneg,
data = dat.bcg, studlab = paste(author, year), method = "Inverse")
summary(m1)
blup(m1)
if (FALSE) {
estimates(blup(m1), path = "blup_m1.xlsx")
}
Run the code above in your browser using DataLab