summary.RoBTT | R Documentation |
summary.RoBTT
creates summary tables for a
RoBTT object.
## S3 method for class 'RoBTT'
summary(
object,
type = "ensemble",
conditional = FALSE,
group_estimates = FALSE,
probs = c(0.025, 0.975),
logBF = FALSE,
BF01 = FALSE,
short_name = FALSE,
remove_spike_0 = FALSE,
...
)
object |
a fitted 'RoBTT' object |
type |
whether to show the overall 'RoBTT' results ( |
conditional |
show the conditional estimates (assuming that the
alternative is true). Defaults to |
group_estimates |
show the model-averaged mean and standard deviation estimates for each group. |
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 |
summary.RoBTT
returns a list of tables of class 'BayesTools_table'.
RoBTT()
## Not run:
# using the example data from Darwin
data("fertilization", package = "RoBTT")
fit <- RoBTT(
x1 = fertilization$Self,
x2 = fertilization$Crossed,
prior_delta = prior("cauchy", list(0, 1/sqrt(2))),
prior_rho = prior("beta", list(3, 3)),
seed = 1,
chains = 1,
warmup = 1000,
iter = 2000,
control = set_control(adapt_delta = 0.95)
)
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.