View source: R/summary_models.R
| summary_models | R Documentation |
Creates marginal or individual model-weight summaries for RoBMA-class product-space objects.
summary_models(object, ...)
## S3 method for class 'RoBMA'
summary_models(object, type = "marginal", include_mcmc_diagnostics = TRUE, ...)
## S3 method for class 'summary_models.RoBMA'
print(x, ...)
object |
a fitted RoBMA-class product-space object, including
|
... |
additional arguments |
type |
whether to summarize marginal component prior distributions
( |
include_mcmc_diagnostics |
whether to include Bayes factor MCMC
diagnostics in the output. Defaults to |
x |
a |
Only mixture-prior components are summarized; non-mixture components are omitted.
A list of class summary_models.RoBMA with elements
name and type. For type = "marginal", element
marginal contains component tables with columns such as
prior_prob, post_prob, and inclusion_BF. For
type = "individual", element individual contains individual
model combinations and posterior probabilities.
## Not run:
if (requireNamespace("metadat", quietly = TRUE)) {
data(dat.lehmann2018, package = "metadat")
fit <- RoBMA(yi = yi, vi = vi, data = dat.lehmann2018, measure = "SMD")
summary_models(fit)
summary_models(fit, type = "individual")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.