pbetap              package:LearnBayes              R Documentation

_P_r_e_d_i_c_t_i_v_e _d_i_s_t_r_i_b_u_t_i_o_n _f_o_r _a _b_i_n_o_m_i_a_l _s_a_m_p_l_e _w_i_t_h _a _b_e_t_a _p_r_i_o_r

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

     Computes predictive distribution for number of successes of future
     binomial experiment with a discrete distribution for the
     proportion.

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

     pbetap(ab, n, s)

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

      ab: vector of parameters of the beta prior

       n: size of future binomial sample

       s: vector of number of successes for future binomial experiment

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

     vector of predictive probabilities for the values in the vector s

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

     Jim Albert

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

     ab=c(3,12)
     n=10
     s=0:10
     pbetap(ab,n,s)

