cauchyerrorpost          package:LearnBayes          R Documentation

_L_o_g _p_o_s_t_e_r_i_o_r _o_f _m_e_d_i_a_n _a_n_d _l_o_g _s_c_a_l_e _p_a_r_a_m_e_t_e_r_s _f_o_r _C_a_u_c_h_y _s_a_m_p_l_i_n_g

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

     Computes the log posterior density of (M,log S)  when a sample is
     taken from a Cauchy density with location M and scale S and a
     uniform prior distribution is taken on (M, log S)

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

     cauchyerrorpost(theta,data)

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

   theta: matrix of parameter values where each row represents a value
          of (M, log S)

    data: vector containing sample of observations

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

     vector of values of the log posterior where each value corresponds
     to each row of the parameters in theta

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

     Jim Albert

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

     data=c(108, 51, 7, 43, 52, 54, 53, 49, 21, 48)
     theta1=array(c(40,0),c(1,2))
     theta2=array(c(50,1),c(1,2))
     theta=rbind(theta1,theta2)
     cauchyerrorpost(theta,data)

