Package: bayesics 2.1.1

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

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) <doi:10.1214/aoms/1177693507> or by Chib's method as given in xxx. Interpretations are from Kass and Raftery (1995) <doi:10.1080/01621459.1995.10476572>. ROPE bounds are based on discussions in Kruschke (2018) <doi:10.1177/2515245918771304>. Methods for determining the number of posterior samples required are described in Doss et al. (2014) <doi:10.1214/14-EJS957>. Bayesian model averaging is done in part by Feldkircher and Zeugner (2015) <doi:10.18637/jss.v068.i04>. Methods for contingency table analysis is described in Gunel et al. (1974) <doi:10.1093/biomet/61.3.545>. Variational Bayes (VB) methods are described in Salimans and Knowles (2013) <doi:10.1214/13-BA858>. Mediation analysis uses the framework described in Imai et al. (2010) <doi:10.1037/a0020761>. The loss-likelihood bootstrap used in the non-parametric regression modeling is described in Lyddon et al. (2019) <doi:10.1093/biomet/asz006>. Non-parametric survival methods are described in Qing et al. (2023) <doi:10.1002/pst.2256>. Methods used for the Bayesian Wilcoxon signed-rank analysis is given in Chechile (2018) <doi:10.1080/03610926.2017.1388402> and for the Bayesian Wilcoxon rank sum analysis in Chechile (2020) <doi:10.1080/03610926.2018.1549247>. Correlation analysis methods are carried out by Barch and Chechile (2023) <doi:10.32614/CRAN.package.DFBA>, and described in Lindley and Phillips (1976) <doi:10.1080/00031305.1976.10479154> and Chechile and Barch (2021) <doi:10.1016/j.jmp.2021.102638>. See also Chechile (2020, ISBN: 9780262044585).

Authors:Daniel K. Sewell [aut, cre, cph], Alan Arakkal [aut]

bayesics_2.1.1.tar.gz
bayesics_2.1.1.zip(r-4.7)bayesics_2.1.1.zip(r-4.6)bayesics_2.1.1.zip(r-4.5)
bayesics_2.1.1.tgz(r-4.6-any)bayesics_2.1.1.tgz(r-4.5-any)
bayesics_2.1.1.tar.gz(r-4.7-any)bayesics_2.1.1.tar.gz(r-4.6-any)
bayesics_2.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
bayesics/json (API)
NEWS

# Install 'bayesics' in R:
install.packages('bayesics', repos = c('https://dksewell.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/dksewell/bayesics/issues

On CRAN:

Conda:

3.93 score 3 scripts 530 downloads 27 exports 52 dependencies

Last updated from:c2ddda91e5. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK376
source / vignettesOK253
linux-release-x86_64OK376
macos-release-arm64OK321
macos-oldrel-arm64OK276
windows-develOK427
windows-releaseOK421
windows-oldrelOK453
wasm-releaseOK141

Exports:aov_bbayes_factorsbinom_test_bbma_inferencecase_control_bcor_test_bcredintDICfind_beta_parmsfind_invgamma_parmsfrac_bayes_factorsget_posterior_drawsglm_bheteroscedasticity_testindependence_blm_bmediate_bnegbinomnp_glm_bpoisson_test_bprop_test_bsign_test_bSurvsurvfit_bt_test_bWAICwilcoxon_test_b

Dependencies:BMScliclustercodetoolscpp11DFBAdigestdplyrextraDistrfarverfuturefuture.applygenericsggplot2globalsgluegtablehmsisobandjanitorlabelinglatticelifecyclelistenvlubridatemagrittrMatrixmvtnormparallellypatchworkpillarpkgconfigpurrrR6RColorBrewerRcppRcppArmadillorlangS7scalessnakecasestringistringrsurvivaltibbletidyrtidyselecttimechangeutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Analysis of Variance using Bayesian methodsaov_b
Bayes factors for lm_b, glm_b, and survfit_bbayes_factors bayes_factors.glm_b bayes_factors.lm_b bayes_factors.survfit_b
Bayesian model averagingbma_inference
Case-Control Analysiscase_control_b
Test of independence for 2-way contingency tableschisq_test_b independence_b
Coefficient extraction for bayesics objectscoef coef.aov_b coef.glm_b coef.lm_b coef.lm_b_bma coef.np_glm_b
Test for Association/Correlation Between Paired Samples via Kendall's taucor_test_b cor_test_b.default cor_test_b.formula
Credible Intervals for Model Parameterscredint credint.aov_b credint.glm_b credint.lm_b credint.lm_b_bma credint.np_glm_b
Find parameters for Beta prior based on prior mean and one quantilefind_beta_parms
Find parameters for Inverse gamma prior based on prior mean and one quantilefind_invgamma_parms
Fractional Bayes factorsfrac_bayes_factors
Get posterior samples from lm_b objectget_posterior_draws
Bayesian Generalized Linear Modelsglm_b
Test for heteroscedasticity in AOV modelsheteroscedasticity_test var_test_b
Compute AIC, BIC, DIC, or WAIC for aov_b or lm_b objects. (Lower is better.)AIC AIC.aov_b AIC.glm_b AIC.lm_b BIC BIC.aov_b BIC.glm_b BIC.lm_b DIC DIC.aov_b DIC.glm_b DIC.lm_b IC WAIC WAIC.aov_b WAIC.glm_b WAIC.lm_b
Bayesian Linear Modelslm_b
Mediation using Bayesian methodsmediate_b
Negative-binomial familynegbinom
Non-parametric linear modelsnp_glm_b
Plots bayesics objects.plot plot.aov_b plot.glm_b plot.lm_b plot.lm_b_bma plot.mediate_b plot.np_glm_b plot.survfit_b
Poisson testspoisson_test_b
Predict method for aov_b model fitspredict.aov_b
Predict method for glm_b model fitspredict.glm_b
Predict method for lm_b model fitspredict.lm_b
Predict method for bma model fitspredict.lm_b_bma
Predict method for lm_b model fitspredict.np_glm_b
Print bayesics objects.print print.aov_b print.glm_b print.lm_b print.lm_b_bma print.mediate_b print.np_glm_b print.survfit_b
Bayesian test of Equal or Given Proportionsbinom_test_b prop_test_b
Paired sign testsign_test_b
Summary functions for bayesics objectssummary summary.aov_b summary.glm_b summary.lm_b summary.lm_b_bma summary.mediate_b summary.np_glm_b
Create a Survival ObjectSurv
Create survival curvessurvfit_b
t-testt_test_b
Calculate Posterior Variance-Covariance Matrix for a Bayesian Fitted Model Objectvcov vcov.aov_b vcov.glm_b vcov.lm_b vcov.np_glm_b
Bayesian Wilcoxon Rank Sum (aka Mann-Whitney U) and Signed Rank Analyseswilcoxon_test_b