summary.RoBMA {RoBMA} | R Documentation |
Summarize fitted RoBMA object
Description
summary.RoBMA
creates summary tables for a
RoBMA object.
Usage
## S3 method for class 'RoBMA'
summary(
object,
type = "ensemble",
conditional = FALSE,
output_scale = NULL,
probs = c(0.025, 0.975),
logBF = FALSE,
BF01 = FALSE,
short_name = FALSE,
remove_spike_0 = FALSE,
...
)
Arguments
object |
a fitted RoBMA object |
type |
whether to show the overall RoBMA results ( |
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 |
logBF |
show log of Bayes factors. Defaults to |
BF01 |
show Bayes factors in support of the null hypotheses. Defaults to
|
short_name |
whether priors names should be shortened to the first
(couple) of letters. Defaults to |
remove_spike_0 |
whether spike prior distributions with location at zero should
be omitted from the summary. Defaults to |
... |
additional arguments |
Value
summary.RoBMA
returns a list of tables of class 'BayesTools_table'.
Note
See diagnostics()
for visual convergence checks of the individual models.
See Also
RoBMA()
, diagnostics()
, check_RoBMA()
Examples
## Not run:
# using the example data from Anderson et al. 2010 and fitting the default model
# (note that the model can take a while to fit)
fit <- RoBMA(r = Anderson2010$r, n = Anderson2010$n, study_names = Anderson2010$labels)
# summary can provide many details about the model
summary(fit)
# estimates from the conditional models can be obtained with
summary(fit, conditional = TRUE)
# overview of the models and their prior and posterior probability, marginal likelihood,
# and inclusion Bayes factor can be obtained with
summary(fit, type = "models")
# diagnostics overview, containing the maximum R-hat, minimum ESS, maximum MCMC error, and
# maximum MCMC error / sd across parameters for each individual model can be obtained with
summary(fit, type = "diagnostics")
# summary of individual models and their parameters can be further obtained by
summary(fit, type = "individual")
## End(Not run)