Package: BayesFactor 0.9.12-4.7
BayesFactor: Computation of Bayes Factors for Common Designs
A suite of functions for computing various Bayes factors for simple designs, including contingency tables, one- and two-sample designs, one-way designs, general ANOVA designs, and linear regression.
Authors:
BayesFactor_0.9.12-4.7.tar.gz
BayesFactor_0.9.12-4.7.zip(r-4.7)BayesFactor_0.9.12-4.7.zip(r-4.6)BayesFactor_0.9.12-4.7.zip(r-4.5)
BayesFactor_0.9.12-4.7.tgz(r-4.6-x86_64)BayesFactor_0.9.12-4.7.tgz(r-4.6-arm64)BayesFactor_0.9.12-4.7.tgz(r-4.5-x86_64)BayesFactor_0.9.12-4.7.tgz(r-4.5-arm64)
BayesFactor_0.9.12-4.7.tar.gz(r-4.7-arm64)BayesFactor_0.9.12-4.7.tar.gz(r-4.7-x86_64)BayesFactor_0.9.12-4.7.tar.gz(r-4.6-arm64)BayesFactor_0.9.12-4.7.tar.gz(r-4.6-x86_64)
BayesFactor_0.9.12-4.7.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
BayesFactor/json (API)
NEWS
| # Install 'BayesFactor' in R: |
| install.packages('BayesFactor', repos = c('https://richarddmorey.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/richarddmorey/bayesfactor/issues
Last updated from:1dafa6cf91. Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 267 | ||
| linux-devel-x86_64 | OK | 292 | ||
| source / vignettes | OK | 438 | ||
| linux-release-arm64 | OK | 274 | ||
| linux-release-x86_64 | OK | 257 | ||
| macos-release-arm64 | OK | 237 | ||
| macos-release-x86_64 | OK | 609 | ||
| macos-oldrel-arm64 | OK | 361 | ||
| macos-oldrel-x86_64 | OK | 675 | ||
| windows-devel | OK | 294 | ||
| windows-release | OK | 302 | ||
| windows-oldrel | OK | 255 | ||
| wasm-release | OK | 199 |
Exports:anovaBFas.BFBayesFactoras.BFprobabilityBFInfoBFManualcomparecontingencyTableBFcorrelationBFenumerateGeneralModelsextractBFextractOddsextractProbabilitiesfilterBFgeneralTestBFlinearReg.R2statlmBFlogCumMeanExpLogslogMeanExpLogslogSummaryStatsmeta.ttestBFmodel.matrixnewPriorOddsnWayAOVoneWayAOV.FstatposteriorpriorLogodds<-priorOdds<-proportionBFrecomputeregressionBFtttest.tstatttestBFwhich.maxwhich.min
Dependencies:clicodacontfracdeSolveellipticgluehypergeolatticelifecyclemagrittrMASSMatrixMatrixModelsmvtnormpbapplyRcppRcppEigenrlangstringistringrvctrs
Demos and comparisons
Rendered fromcompare_lme4.Rmdusingknitr::knitron May 08 2026.Last update: 2026-03-06
Started: 2013-12-21
Odds and probabilities
Rendered fromodds_probs.Rmdusingknitr::knitron May 08 2026.Last update: 2026-03-06
Started: 2015-03-05
Prior checks
Rendered frompriors.Rmdusingknitr::knitron May 08 2026.Last update: 2026-03-06
Started: 2013-12-20
Using the 'BayesFactor' package, version 0.9.2+
Rendered frommanual.Rmdusingknitr::rmarkdownon May 08 2026.Last update: 2023-09-21
Started: 2013-10-15
Vignette menu
Rendered fromindex.Rmdusingknitr::knitron May 08 2026.Last update: 2026-03-06
Started: 2013-10-15
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Functions to compute Bayes factor hypothesis tests for common research designs and hypotheses. | BayesFactor-package BayesFactor |
| Compare two objects to see if they are the 'same', for some loose definition of same | %same% |
| Find a model term in a vector of model terms | %termin% |
| Function to compute Bayes factors for ANOVA designs | anovaBF |
| Function to coerce objects to the BFBayesFactor class | as.BFBayesFactor |
| Function to coerce objects to the BFprobability class | as.BFprobability |
| General S4 class for representing multiple Bayes factor model comparisons, all against the same model | *,BFBayesFactor,BFodds-method /,BFBayesFactor,BFBayesFactor-method /,numeric,BFBayesFactor-method BFBayesFactor-class BFBayesFactorTop-class is.na,BFBayesFactor-method t,BFBayesFactor-method which.max,BFBayesFactor-method which.min,BFBayesFactor-method [,BFBayesFactor,index,missing,missing-method [,BFBayesFactorTop,index,missing,missing-method |
| General S4 class for representing a collection of Bayes factor model comprisons, each against a different denominator | /,numeric,BFBayesFactorList-method BFBayesFactorList-class t,BFBayesFactorList-method [,BFBayesFactorList,index,index,missing-method [,BFBayesFactorList,index,missing,missing-method [,BFBayesFactorList,missing,index,missing-method |
| Prints the version information for the BayesFactor package | BFInfo |
| Opens the HTML manual for the BayesFactor package | BFManual |
| General S4 classes for representing models for comparison | BFcontingencyTable-class BFcorrelation-class BFindepSample-class BFlinearModel-class BFmodel-class BFoneSample-class BFproportion-class |
| General S4 class for representing multiple odds model comparisons, all against the same model | *,BFodds,BFBayesFactor-method /,BFodds,BFodds-method /,numeric,BFodds-method BFodds-class [,BFodds,index,missing,missing-method |
| General S4 class for representing multiple model probability comparisons | -,BFprobability,numeric-method /,BFprobability,numeric-method BFprobability-class filterBF,BFprobability,character-method [,BFprobability,index,missing,missing-method |
| Compare two models, with respect to some data | compare compare,BFcontingencyTable,BFcontingencyTable,data.frame-method compare,BFcontingencyTable,missing,data.frame-method compare,BFcorrelation,missing,data.frame-method compare,BFindepSample,missing,data.frame-method compare,BFlinearModel,BFlinearModel,data.frame-method compare,BFlinearModel,missing,data.frame-method compare,BFmcmc,BFmcmc,ANY-method compare,BFmcmc,missing,ANY-method compare,BFmetat,missing,data.frame-method compare,BFoneSample,missing,data.frame-method compare,BFproportion,missing,data.frame-method |
| Function for Bayesian analysis of one- and two-sample designs | contingencyTableBF |
| Function for Bayesian analysis of correlations | correlationBF |
| Extract the Bayes factor from an object | extractBF extractBF,BFBayesFactor-method |
| Extract the odds from an object | extractOdds extractOdds,BFodds-method |
| Extract the probabilities from an object | extractProbabilities extractProbabilities,BFprobability-method |
| Filter the elements of an object according to some pre-specified criteria | filterBF |
| Function to compute Bayes factors for general designs | generalTestBF |
| Use R^2 statistic to compute Bayes factor for regression designs | linearReg.R2stat |
| Function to compute Bayes factors for specific linear models | lmBF |
| Functions to compute the logarithm of the mean (and cumulative means) of vectors of logarithms | logCumMeanExpLogs logMeanExpLogs logSummaryStats |
| Function for Bayesian analysis of one- and two-sample designs | meta.ttestBF |
| Design matrices for Bayes factor linear models analyses. | model.matrix,BFBayesFactor model.matrix,BFBayesFactor-method model.matrix,BFBayesFactorTop-method |
| Create prior odds from a Bayes factor object | newPriorOdds |
| Use ANOVA design matrix to compute Bayes factors or sample posterior | nWayAOV |
| Use F statistic to compute Bayes factor for balanced one-way designs | oneWayAOV.Fstat |
| options() for package BayesFactor | options-BayesFactor |
| Plot a Bayes factor object | plot.BFBayesFactor |
| Plot a Bayes factor top-down object | plot.BFBayesFactorTop |
| Sample from the posterior distribution of one of several models. | posterior posterior,BFBayesFactor,missing,missing,missing-method posterior,BFBayesFactor,missing,missing,numeric-method posterior,BFBayesFactor,numeric,missing,numeric-method posterior,BFcontingencyTable,missing,data.frame,numeric-method posterior,BFcorrelation,missing,data.frame,numeric-method posterior,BFindepSample,missing,data.frame,numeric-method posterior,BFlinearModel,missing,data.frame,numeric-method posterior,BFmetat,missing,data.frame,numeric-method posterior,BFmodel,missing,data.frame,missing-method posterior,BFoneSample,missing,data.frame,numeric-method posterior,BFproportion,missing,data.frame,numeric-method |
| Set prior log odds in an object | priorLogodds<- priorLogodds<-,BFodds,numeric-method |
| Set prior odds in an object | priorOdds<- priorOdds<-,BFodds,numeric-method |
| Function for Bayesian analysis of proportions | proportionBF |
| Puzzle completion times from Hays (1994) | puzzles |
| Hraba and Grant (1970) children's doll preference data | raceDolls |
| Recompute a Bayes factor computation or MCMC object. | recompute recompute,BFBayesFactor-method recompute,BFBayesFactorTop-method recompute,BFmcmc-method recompute,BFodds-method |
| Function to compute Bayes factors for regression designs | regressionBF |
| Use t statistic to compute Bayes factor for one- and two- sample designs | ttest.tstat |
| Function for Bayesian analysis of one- and two-sample designs | ttestBF |
