wfromt             package:EbayesThresh             R Documentation

_M_i_x_i_n_g _w_e_i_g_h_t _f_r_o_m _p_o_s_t_e_r_i_o_r _m_e_d_i_a_n _t_h_r_e_s_h_o_l_d

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

     Given a threshold value, find the mixing weight for which this is
     the threshold of the posterior median estimator. If a vector of
     threshold values is provided, the vector of corresponding weights
     is returned.

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

     wfromt(tt, prior = "laplace", a = 0.5)

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

      tt: threshold value or vector of values

   prior: specification of prior to be used; can be "cauchy" or 
          "laplace"

       a: scale factor if Laplace prior is used.  Ignored if Cauchy
          prior is used. 

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

     The numerical value or vector of values of the corresponding
     weight is returned.

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

     Bernard Silverman

_R_e_f_e_r_e_n_c_e_s:

     See 'ebayesthresh' and <URL: http://www.bernardsilverman.com>

_S_e_e _A_l_s_o:

     'tfromw'

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

     wfromt( c(2,3,5), prior="cauchy" )

