Learn R Programming

⚠️There's a newer version (0.9.12-4.7) of this package.Take me there.

BayesFactor (version 0.9.12-4.6)

Computation of Bayes Factors for Common Designs

Description

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.

Copy Link

Version

Install

install.packages('BayesFactor')

Monthly Downloads

26,799

Version

0.9.12-4.6

License

GPL-2

Maintainer

R. Morey

Last Published

December 1st, 2023

Functions in BayesFactor (0.9.12-4.6)

generalTestBF

Function to compute Bayes factors for general designs
extractOdds

Extract the odds from an object
enumerateGeneralModels

Function for generation of nested linear models
options-BayesFactor

options() for package BayesFactor
plot.BFBayesFactor

Plot a Bayes factor object
newPriorOdds

Create prior odds from a Bayes factor object
logMeanExpLogs

Functions to compute the logarithm of the mean (and cumulative means) of vectors of logarithms
%termin%

Find a model term in a vector of model terms
ttest.tstat

Use t statistic to compute Bayes factor for one- and two- sample designs
regressionBF

Function to compute Bayes factors for regression designs
linearReg.R2stat

Use R^2 statistic to compute Bayes factor for regression designs
oneWayAOV.Fstat

Use F statistic to compute Bayes factor for balanced one-way designs
lmBF

Function to compute Bayes factors for specific linear models
priorLogodds<-

Set prior log odds in an object
raceDolls

Hraba and Grant (1970) children's doll preference data
BFmodel-class

General S4 classes for representing models for comparison
priorOdds<-

Set prior odds in an object
recompute

Recompute a Bayes factor computation or MCMC object.
meta.ttestBF

Function for Bayesian analysis of one- and two-sample designs
model.matrix,BFBayesFactor-method

Design matrices for Bayes factor linear models analyses.
plot.BFBayesFactorTop

Plot a Bayes factor top-down object
nWayAOV

Use ANOVA design matrix to compute Bayes factors or sample posterior
posterior

Sample from the posterior distribution of one of several models.
puzzles

Puzzle completion times from Hays (1994)
proportionBF

Function for Bayesian analysis of proportions
ttestBF

Function for Bayesian analysis of one- and two-sample designs
BFodds-class

General S4 class for representing multiple odds model comparisons, all against the same model
BayesFactor-package

Functions to compute Bayes factor hypothesis tests for common research designs and hypotheses.
BFBayesFactor-class

General S4 class for representing multiple Bayes factor model comparisons, all against the same model
BFInfo

Prints the version information for the BayesFactor package
BFManual

Opens the HTML manual for the BayesFactor package
extractProbabilities

Extract the probabilities from an object
as.BFBayesFactor

Function to coerce objects to the BFBayesFactor class
extractBF

Extract the Bayes factor from an object
anovaBF

Function to compute Bayes factors for ANOVA designs
BFBayesFactorList-class

General S4 class for representing a collection of Bayes factor model comprisons, each against a different denominator
filterBF

Filter the elements of an object according to some pre-specified criteria
BFprobability-class

General S4 class for representing multiple model probability comparisons
correlationBF

Function for Bayesian analysis of correlations
%same%

Compare two objects to see if they are the 'same', for some loose definition of same
as.BFprobability

Function to coerce objects to the BFprobability class
compare

Compare two models, with respect to some data
contingencyTableBF

Function for Bayesian analysis of one- and two-sample designs