Learn R Programming

bayesics (version 2.1.0)

Bayesian Analyses for One- and Two-Sample Inference and Regression Methods

Description

Perform fundamental analyses using Bayesian parametric and non-parametric inference (regression, anova, 1 and 2 sample inference, non-parametric tests, etc.). (Practically) no Markov chain Monte Carlo (MCMC) is used; all exact finite sample inference is completed via closed form solutions or else through posterior sampling automated to ensure precision in interval estimate bounds. Diagnostic plots for model assessment, and key inferential quantities (point and interval estimates, probability of direction, region of practical equivalence, and Bayes factors) and model visualizations are provided. Bayes factors are computed either by the Savage Dickey ratio given in Dickey (1971) or by Chib's method as given in xxx. Interpretations are from Kass and Raftery (1995) . ROPE bounds are based on discussions in Kruschke (2018) . Methods for determining the number of posterior samples required are described in Doss et al. (2014) . Bayesian model averaging is done in part by Feldkircher and Zeugner (2015) . Methods for contingency table analysis is described in Gunel et al. (1974) . Variational Bayes (VB) methods are described in Salimans and Knowles (2013) . Mediation analysis uses the framework described in Imai et al. (2010) . The loss-likelihood bootstrap used in the non-parametric regression modeling is described in Lyddon et al. (2019) . Non-parametric survival methods are described in Qing et al. (2023) . Methods used for the Bayesian Wilcoxon signed-rank analysis is given in Chechile (2018) and for the Bayesian Wilcoxon rank sum analysis in Chechile (2020) . Correlation analysis methods are carried out by Barch and Chechile (2023) , and described in Lindley and Phillips (1976) and Chechile and Barch (2021) . See also Chechile (2020, ISBN: 9780262044585).

Copy Link

Version

Install

install.packages('bayesics')

Version

2.1.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Dan Sewell

Last Published

February 20th, 2026

Functions in bayesics (2.1.0)

coef

Coefficient extraction for bayesics objects
aov_b

Analysis of Variance using Bayesian methods
lm_b

Bayesian Linear Models
mediate_b

Mediation using Bayesian methods
find_beta_parms

Find parameters for Beta prior based on prior mean and one quantile
find_invgamma_parms

Find parameters for Inverse gamma prior based on prior mean and one quantile
predict.np_glm_b

Predict method for lm_b model fits
print

Print bayesics objects.
glm_b

Bayesian Generalized Linear Models
heteroscedasticity_test

Test for heteroscedasticity in AOV models
predict.lm_b_bma

Predict method for bma model fits
predict.lm_b

Predict method for lm_b model fits
frac_bayes_factors

Fractional Bayes factors
get_posterior_draws

Get posterior samples from lm_b object
vcov

Calculate Posterior Variance-Covariance Matrix for a Bayesian Fitted Model Object
t_test_b

t-test
predict.aov_b

Predict method for aov_b model fits
predict.glm_b

Predict method for glm_b model fits
plot

Plots bayesics objects.
negbinom

Negative-binomial family
np_glm_b

Non-parametric linear models
poisson_test_b

Poisson tests
sign_test_b

Paired sign test
prop_test_b

Bayesian test of Equal or Given Proportions
summary

Summary functions for bayesics objects
survfit_b

Create survival curves
wilcoxon_test_b

Bayesian Wilcoxon Rank Sum (aka Mann-Whitney U) and Signed Rank Analyses
cor_test_b

Test for Association/Correlation Between Paired Samples via Kendall's tau
bma_inference

Bayesian model averaging
credint

Credible Intervals for Model Parameters
bayes_factors

Bayes factors for lm_b, glm_b, and survfit_b
case_control_b

Case-Control Analysis
chisq_test_b

Test of independence for 2-way contingency tables
IC

Compute AIC, BIC, DIC, or WAIC for aov_b or lm_b objects. (Lower is better.)
Surv

Create a Survival Object