pbetat              package:LearnBayes              R Documentation

_B_a_y_e_s_i_a_n _t_e_s_t _o_f _a _p_r_o_p_o_r_t_i_o_n

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

     Bayesian test that a proportion is equal to a specified value
     using a beta prior

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

     pbetat(p0,prob,ab,data)

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

      p0: value of the proportion to be tested 

    prob: prior probability of the hypothesis

      ab: vector of parameter values of the beta prior under the
          alternative hypothesis

    data: vector containing the number of successes and number of
          failures

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

      bf: the Bayes factor in support of the null hypothesis

    post: the posterior probability of the null hypothesis

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

     Jim Albert

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

     p0=.5
     prob=.5
     ab=c(10,10)
     data=c(5,15)
     pbetat(p0,prob,ab,data)

