quantiles              package:siggenes              R Documentation

_E_m_p_i_r_i_c_a_l _Q_u_a_n_t_i_l_e_s

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

     Computes the desired quantiles of a sample and returns them.

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

     quantiles(x,prob)

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

       x: vector of data

    prob: vector of desired probability levels. Values must be between
          0 and 1 inclusive.

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

     Consider a sample containing n observations. If alpha n is a
     non-integer, then the alpha quantile will be given by the kth
     smallest observation x(k), where k is the smallest integer larger
     than alpha n. If alpha n is an integer, then the alpha quantile
     will be computed by 0.5(x(k)+x(k+1)).

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

     a vector containing the desired quantiles of the sample

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

     Holger Schwender, holger.schw@gmx.de

