thresholds               package:prada               R Documentation

_D_i_s_c_r_e_t_i_z_e _a _t_w_o-_d_i_m_e_n_s_i_o_n_a_l _d_a_t_a _s_p_a_c_e _i_n_t_o _q_u_a_d_r_a_n_t_s _b_y
_a_p_p_l_y_i_n_g _t_h_r_e_s_h_o_l_d_s

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

     Discretize a two-dimensional data space into quadrants by applying
     thresholds.

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

     thresholds(x, y, xthr, ythr)

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

       x: Vector containing x or matrix containing x and y values of
          bivariate data.

       y: Optional vector containing y values of bivariate data.

    xthr: x value seperating 'left' and 'right'.

    ythr: y value seperating `up` and 'down'.

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

     The function returns a 2x2 matrix giving the counts for each
     quadrant. Events with values equal to the thresholds are counted
     to the left or down respectively.

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

     2x2 matrix.

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

     Florian Hahne

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

     thresholds(cbind(c(1, 1, 2, 2, 2, 4), c(1, 4, 2, 4, 5, 4)), xthr=3, ythr=3)

