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

ctable

Bayes factor against independence using uniform priors


Description

Computes a Bayes factor against independence for a two-way contingency table assuming uniform prior distributions

Usage

ctable(y,a)

Arguments

y

matrix of counts

a

matrix of prior hyperparameters

Value

value of the Bayes factor against independence

Author(s)

Jim Albert

Examples

y=matrix(c(10,4,6,3,6,10),c(2,3))
a=matrix(rep(1,6),c(2,3))
ctable(y,a)

LearnBayes

Functions for Learning Bayesian Inference

v2.15.1
GPL (>= 2)
Authors
Jim Albert
Initial release
2018-03-18

We don't support your browser anymore

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