u: Numerical vector or matrix whose depth is to be calculated. Dimension has to be the same as that of the observations.
X: The data as a matrix, data frame. If it is a matrix or data frame, then each row is viewed as one multivariate observation.
beta: cutoff value for neighbourhood
depth_params1: list of parameters for function depth (method, threads, ndir, la, lb, pdim, mean, cov, exact).
depth_params2: as above --- default is depth_params1.
Details
A successful concept of local depth was proposed by Paindaveine and Van Bever (2012). For defining a neighbourhood of a point authors proposed using idea of symmetrisation of a distribution (a sample) with respect to a point in which depth is calculated. In their approach instead of a distribution PX, a distribution Px=21PX+21P2x−X is used. For any β∈[0,1], let us introduce the smallest depth region bigger or equal to β,
Rβ(F)=α∈A(β)⋂Dα(F),
where A(β)={α≥0:P[Dα(F)]≥β}. Then for a locality parameter β we can take a neighbourhood of a point x as Rxβ(P).
Formally, let D(⋅,P) be a depth function. Then the local depth with the locality parameter β and w.r.t. a point x is defined as
LDβ(z,P):z→D(z,Pxβ),
where Pxβ(⋅)=P(⋅∣Rxβ(P)) is cond. distr. of P conditioned on Rxβ(P).
Paindaveine, D., Van Bever, G. (2013) From depth to local depth : a focus on centrality. Journal of the American Statistical Association 105, 1105--1119.