residuals.RoBMA | R Documentation |
residuals.RoBMA
extract residuals based on the RoBMA model.
Only available for normal-normal models estimated using the spike-and-slab
algorithm (i.e., algorithm = "ss"
).
## S3 method for class 'RoBMA'
residuals(
object,
conditional = FALSE,
output_scale = NULL,
probs = c(0.025, 0.975),
as_samples = FALSE,
...
)
object |
a fitted RoBMA object |
conditional |
show the conditional estimates (assuming that the
alternative is true). Defaults to |
output_scale |
transform the meta-analytic estimates to a different
scale. Defaults to |
probs |
quantiles of the posterior samples to be displayed.
Defaults to |
as_samples |
whether posterior samples instead of a summary table should
be returned. Defaults to |
... |
additional arguments |
pooled_effect
returns a list of tables of class 'BayesTools_table'.
predict.RoBMA()
## Not run:
require(metafor)
dat <- escalc(measure = "OR", ai = tpos, bi = tneg, ci = cpos, di = cneg,
data = dat.bcg)
# fit meta-regression
robma_dat <- data.frame(
logOR = dat$yi,
se = sqrt(dat$vi),
ablat = dat$ablat,
alloc = dat$alloc
)
fit <- NoBMA.reg(~ ablat + alloc, data = robma_dat,
seed = 1, algorithm = "ss", parallel = TRUE)
residuals(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.