Learn R Programming

bayesics (version 2.0.2)

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.0.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Dan Sewell

Last Published

February 6th, 2026

Functions in bayesics (2.0.2)

negbinom

Negative-binomial family
IC

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

Predict method for bma model fits
vcov

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

Bayesian Wilcoxon Rank Sum (aka Mann-Whitney U) and Signed Rank Analyses
predict.np_glm_b

Predict method for lm_b model fits
Surv

Create a Survival Object
heteroscedasticity_test

Test for heteroscedasticity in AOV models
lm_b

Bayesian Linear Models
prop_test_b

Bayesian test of Equal or Given Proportions
survfit_b

Create survival curves
aov_b

Analysis of Variance using Bayesian methods
bayes_factors

Bayes factors for lm_b, glm_b, and survfit_b
predict.aov_b

Predict method for aov_b model fits
poisson_test_b

Poisson tests
t_test_b

t-test
cor_test_b

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

Coefficient extraction for bayesics objects
bma_inference

Bayesian model averaging
case_control_b

Case-Control Analysis
credint

Credible Intervals for Model Parameters
chisq_test_b

Test of independence for 2-way contingency tables
find_beta_parms

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

Mediation using Bayesian methods
np_glm_b

Non-parametric linear models
plot

Plots bayesics objects.
find_invgamma_parms

Find parameters for Inverse gamma prior based on prior mean and one quantile
glm_b

Bayesian Generalized Linear Models
get_posterior_draws

Get posterior samples from lm_b object
predict.glm_b

Predict method for glm_b model fits
print

Print bayesics objects.
predict.lm_b

Predict method for lm_b model fits
summary

Summary functions for bayesics objects
sign_test_b

Paired sign test