Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

BayesFactor-package

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


Description

This package contains function to compute Bayes factors for a number of research designs and hypotheses, including t tests, ANOVA, and linear regression, correlations, proportions, and contingency tables.

Details

Package: BayesFactor
Type: Package
Version: 0.9.12-4.2
Date: 2018-5-09
License: GPL 2.0
LazyLoad: yes

The following methods are currently implemented, with more to follow:

general linear models (including linear mixed effects models): generalTestBF, lmBF

linear regression: regressionBF, lmBF, linearReg.R2stat;

linear correlation: correlationBF;

t tests: ttestBF, ttest.tstat;

meta-analytic t tests: meta.ttestBF

contingency tables: contingencyTableBF;

single proportions: proportionBF;

linear correlations: correlationBF;

Other useful functions: posterior, for sampling from posterior distributions; recompute, for re-estimating a Bayes factor or posterior distribution; compare, to compare two model posteriors; and plot.BFBayesFactor, for plotting Bayes factor objects.

Author(s)

Richard D. Morey and Jeffrey N. Rouder (with contributions from Tahira Jamil)

Maintainer: Richard D. Morey <richarddmorey@gmail.com>

References

Liang, F. and Paulo, R. and Molina, G. and Clyde, M. A. and Berger, J. O. (2008). Mixtures of g-priors for Bayesian Variable Selection. Journal of the American Statistical Association, 103, pp. 410-423

Rouder, J. N., Speckman, P. L., Sun, D., Morey, R. D., \& Iverson, G. (2009). Bayesian t-tests for accepting and rejecting the null hypothesis. Psychonomic Bulletin & Review, 16, 225-237

Rouder, J. N., Morey, R. D., Speckman, P. L., Province, J. M., (2012) Default Bayes Factors for ANOVA Designs. Journal of Mathematical Psychology. 56. p. 356-374.

Perception and Cognition Lab (University of Missouri): Bayes factor calculators. http://pcl.missouri.edu/bayesfactor

Examples

## See specific functions for examples.

BayesFactor

Computation of Bayes Factors for Common Designs

v0.9.12-4.2
GPL-2
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]
Initial release
2018-05-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.