shorth                 package:prada                 R Documentation

_M_i_d_p_o_i_n_t _o_f _t_h_e _s_h_o_r_t_h

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

     Calculate the midpoint of the shorth

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

     shorth(x, na.rm=FALSE)

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

       x: Numeric

   na.rm: Logical

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

     The shorth is the shortest interval that covers half of the values
     in 'x'. Its midpoint is the median of the data values that lie in
     the shorth and can be used as an estimator of the mode of the
     distribution that generated 'x'.

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

     The midpoint of the short of 'x'.

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

     Wolfgang Huber <URL: http://www.ebi.ac.uk/huber>

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

       x <- c(rnorm(100), runif(100) * 10)
       mean(x)
       median(x)
       shorth(x)

