Learn R Programming

abms (version 0.2)

summary_gibbs: Summary function for abms objects

Description

For abms objects, it returns the posterior mean, standard deviation, and 95% centered credible interval for each parameter. Additionally, it provides all explored models alongside the conditional Bayes factors and marginal Bayes factors estimator between the most probable model and the others that have arisen.

Usage

summary_gibbs(fit, BF = FALSE)

Value

A summary of the inference performed by the Bayesian model obtained by the gibbs_abms() function. The variables are:

Mean_IC

A table with the posterior mean, standard deviation, and 95% centered credible interval for each parameter

Explored_Models

A table with all explored models. If BF=TRUE, the conditional Bayes factors and marginal Bayes factors estimator between the most probable model and the others that have arisen are displayed.

Arguments

fit

An abms object. Such object is obtained by fitting a regression model with the gibbs_abms() function.

BF

A logical object. if TRUE, then the Bayes factor comparison is shown.BF=FALSE by default.

Examples

Run this code
## See \code{gibbs_abms()} help page function

Run the code above in your browser using DataLab