depth                package:mixtools                R Documentation

_E_l_l_i_p_t_i_c_a_l _a_n_d _S_p_h_e_r_i_c_a_l _D_e_p_t_h

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

     Computation of spherical or elliptical depth.

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

      depth(pts, x, Cx = var(x))

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

     pts: A kxd matrix containing the k points that one wants to
          compute the depth. Each row is a point. 

       x: A nxd matrix containing the reference data. Each row is an
          observation.

      Cx: A dxd scatter matrix for the data x where the default is
          var(x). When Cx = I(d), it returns the sphercial depth.

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

     'depth' returns a k-vector where each entry is the elliptical
     depth of a point in 'pts'.

_N_o_t_e:

     'depth' is used in 'regcr'.

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

     Elmore, R. T., Hettmansperger, T. P. and Xuan, F. (2000) Spherical
     Data Depth and a Multivariate Median, _Proceedings of Data Depth:
     Robust Multivariate Statistical Analysis, Computational Geometry
     and Applications_.

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

     'regcr'

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

       x<-matrix(rnorm(200),nc = 2)
       depth(x[1:3, ], x)

