depthProjection: Projection Depth

Description Usage Arguments Details Author(s) Examples

Description

Computes the Projection depth of a point or vectors of points with respect to a multivariate data set.

Usage

1
depthProjection(u, X, ndir = 1000, name = "X", threads = -1, ...)

Arguments

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 or list. If it is a matrix or data frame, then each row is viewed as one multivariate observation. If it is a list, all components must be numerical vectors of equal length (coordinates of observations).

ndir

number of directions used in computations

name

name for this data set - it will be used on plots from depthproc.

threads

number of threads used in parallel computations. Default value -1 means that all possible cores will be used.

...

currently not supported.

Details

Irrespective of dimension, Projection and Tukey's depth is obtained by approximate calculation.

Returns the depth of multivariate point u with respect to data set X.

Author(s)

Daniel Kosiorowski, Mateusz Bocian, Anna Wegrzynkiewicz and Zygmunt Zawadzki from Cracow University of Economics.

Examples

1
2
x = matrix(rnorm(3000), nc = 3)
 a = depthProjection(x, x, ndir = 2000)

Example output

Loading required package: ggplot2
Loading required package: Rcpp
Loading required package: rrcov
Loading required package: robustbase
Scalable Robust Estimators with High Breakdown Point (version 1.4-3)

Loading required package: MASS
Loading required package: np
Nonparametric Kernel Methods for Mixed Datatypes (version 0.60-3)
[vignette("np_faq",package="np") provides answers to frequently asked questions]
[vignette("np",package="np") an overview]
[vignette("entropy_np",package="np") an overview of entropy-based methods]

DepthProc documentation built on May 2, 2019, 6:22 p.m.