tfromx             package:EbayesThresh             R Documentation

_F_i_n_d _t_h_r_e_s_h_o_l_d _f_r_o_m _d_a_t_a

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

     Given a vector of data, find the threshold corresponding to the
     marginal maximum likelihood choice of weight.

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

     tfromx(x, prior = "laplace", bayesfac = FALSE, a = 0.5)

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

       x: vector of data

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

bayesfac: specifies whether Bayes factor threshold should be used
          instead of posterior median threshold

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

_D_e_t_a_i_l_s:

     First, the routine 'wfromx' is called to find the estimated
     weight. Then the routine 'tfromw' is used to find the threshold.
     See the documentation for these routines for more details.

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

     The numerical value of the estimated threshold 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', 'wfromx'

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

     tfromx(x=rnorm(100, c( rep(0,90), rep(5,10))), prior="cauchy")

