ctable              package:LearnBayes              R Documentation

_B_a_y_e_s _f_a_c_t_o_r _a_g_a_i_n_s_t _i_n_d_e_p_e_n_d_e_n_c_e _u_s_i_n_g _u_n_i_f_o_r_m _p_r_i_o_r_s

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     ctable(y,a)

_A_r_g_u_m_e_n_t_s:

       y: matrix of counts

       a: matrix of prior hyperparameters

_V_a_l_u_e:

     value of the Bayes factor against independence

_A_u_t_h_o_r(_s):

     Jim Albert

_E_x_a_m_p_l_e_s:

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

