Package: BayesFactor 0.9.12-4.6

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:Richard D. Morey [aut, cre, cph], Jeffrey N. Rouder [aut], Tahira Jamil [ctb, cph], Simon Urbanek [ctb, cph], Karl Forner [ctb, cph], Alexander Ly [ctb, cph]

BayesFactor_0.9.12-4.6.tar.gz
BayesFactor_0.9.12-4.6.zip(r-4.5)BayesFactor_0.9.12-4.6.zip(r-4.4)BayesFactor_0.9.12-4.6.zip(r-4.3)
BayesFactor_0.9.12-4.6.tgz(r-4.4-x86_64)BayesFactor_0.9.12-4.6.tgz(r-4.4-arm64)BayesFactor_0.9.12-4.6.tgz(r-4.3-x86_64)BayesFactor_0.9.12-4.6.tgz(r-4.3-arm64)
BayesFactor_0.9.12-4.6.tar.gz(r-4.5-noble)BayesFactor_0.9.12-4.6.tar.gz(r-4.4-noble)
BayesFactor_0.9.12-4.6.tgz(r-4.4-emscripten)BayesFactor_0.9.12-4.6.tgz(r-4.3-emscripten)
BayesFactor.pdf |BayesFactor.html
BayesFactor/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/richarddmorey/bayesfactor/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • puzzles - Puzzle completion times from Hays
  • raceDolls - Hraba and Grant (1970) children's doll preference data

On CRAN:

13.75 score 132 stars 20 packages 1.7k scripts 21k downloads 291 mentions 35 exports 21 dependencies

Last updated 12 months agofrom:04b83d90d4. Checks:OK: 3 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 25 2024
R-4.5-win-x86_64NOTEOct 25 2024
R-4.5-linux-x86_64NOTEOct 25 2024
R-4.4-win-x86_64NOTEOct 25 2024
R-4.4-mac-x86_64NOTEOct 25 2024
R-4.4-mac-aarch64NOTEOct 25 2024
R-4.3-win-x86_64NOTEOct 25 2024
R-4.3-mac-x86_64OKOct 25 2024
R-4.3-mac-aarch64OKOct 25 2024

Exports:anovaBFas.BFBayesFactoras.BFprobabilityBFInfoBFManualcomparecontingencyTableBFcorrelationBFenumerateGeneralModelsextractBFextractOddsextractProbabilitiesfilterBFgeneralTestBFlinearReg.R2statlmBFlogCumMeanExpLogslogMeanExpLogslogSummaryStatsmeta.ttestBFmodel.matrixnewPriorOddsnWayAOVoneWayAOV.FstatposteriorpriorLogodds<-priorOdds<-proportionBFrecomputeregressionBFtttest.tstatttestBFwhich.maxwhich.min

Dependencies:clicodacontfracdeSolveellipticgluehypergeolatticelifecyclemagrittrMASSMatrixMatrixModelsmvtnormpbapplyRcppRcppEigenrlangstringistringrvctrs

Demos and comparisons

Rendered fromcompare_lme4.Rmdusingknitron Oct 25 2024.

Last update: 2018-05-07
Started: 2013-12-21

Odds and probabilities

Rendered fromodds_probs.Rmdusingknitron Oct 25 2024.

Last update: 2021-12-15
Started: 2015-03-05

Prior checks

Rendered frompriors.Rmdusingknitron Oct 25 2024.

Last update: 2023-09-21
Started: 2013-12-20

Using the 'BayesFactor' package, version 0.9.2+

Rendered frommanual.Rmdusingknitr::rmarkdownon Oct 25 2024.

Last update: 2023-09-21
Started: 2013-10-15

Vignette menu

Rendered fromindex.Rmdusingknitron Oct 25 2024.

Last update: 2015-03-05
Started: 2013-10-15

Readme and manuals

Help Manual

Help pageTopics
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 designsanovaBF
Function to coerce objects to the BFBayesFactor classas.BFBayesFactor
Function to coerce objects to the BFprobability classas.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 packageBFInfo
Opens the HTML manual for the BayesFactor packageBFManual
General S4 classes for representing models for comparisonBFcontingencyTable-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 datacompare 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 designscontingencyTableBF
Function for Bayesian analysis of correlationscorrelationBF
Extract the Bayes factor from an objectextractBF extractBF,BFBayesFactor-method
Extract the odds from an objectextractOdds extractOdds,BFodds-method
Extract the probabilities from an objectextractProbabilities extractProbabilities,BFprobability-method
Filter the elements of an object according to some pre-specified criteriafilterBF
Function to compute Bayes factors for general designsgeneralTestBF
Use R^2 statistic to compute Bayes factor for regression designslinearReg.R2stat
Function to compute Bayes factors for specific linear modelslmBF
Functions to compute the logarithm of the mean (and cumulative means) of vectors of logarithmslogCumMeanExpLogs logMeanExpLogs logSummaryStats
Function for Bayesian analysis of one- and two-sample designsmeta.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 objectnewPriorOdds
Use ANOVA design matrix to compute Bayes factors or sample posteriornWayAOV
Use F statistic to compute Bayes factor for balanced one-way designsoneWayAOV.Fstat
options() for package BayesFactoroptions-BayesFactor
Plot a Bayes factor objectplot.BFBayesFactor
Plot a Bayes factor top-down objectplot.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 objectpriorLogodds<- priorLogodds<-,BFodds,numeric-method
Set prior odds in an objectpriorOdds<- priorOdds<-,BFodds,numeric-method
Function for Bayesian analysis of proportionsproportionBF
Puzzle completion times from Hays (1994)puzzles
Hraba and Grant (1970) children's doll preference dataraceDolls
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 designsregressionBF
Use t statistic to compute Bayes factor for one- and two- sample designsttest.tstat
Function for Bayesian analysis of one- and two-sample designsttestBF