Last chance! 50% off unlimited learning
Sale ends in
Computes a Bayes factor against independence for a two-way contingency table assuming uniform prior distributions
ctable(y,a)
matrix of counts
matrix of prior hyperparameters
value of the Bayes factor against independence
# NOT RUN {
y=matrix(c(10,4,6,3,6,10),c(2,3))
a=matrix(rep(1,6),c(2,3))
ctable(y,a)
# }
Run the code above in your browser using DataLab