Calculates depth functions.
fncDepth(u, X = NULL, method = "MBD", byrow = NULL, ...) # S3 method for matrix fncDepth(u, X = NULL, method = "MBD", byrow = NULL, ...) # S3 method for zoo fncDepth(u, X = NULL, method = "MBD", byrow = NULL, ...)
u | data |
---|---|
X | reference set. If null u will be used as reference. |
method | depth method - "MBD" (default), or "FM" (Frainman-Muniz depth) |
byrow | logical or character. |
... | additional arguments passed to fncDepthFM. |
#> Warning: Coercing LHS to a list#> Depth method: FM #> [1] 0.6067104 0.5944575 0.7658984fncDepth(x, byrow = FALSE)#> Depth method: MBD #> [1] 0.3947368 0.2789474 0.4894737 0.3947368 0.4087719 0.4824561 0.2964912 #> [8] 0.4754386 0.3280702 0.3280702 0.2824561 0.5491228 0.3280702 0.3175439 #> [15] 0.4894737 0.4438596 0.4649123 0.4263158 0.4368421 0.3842105# zoo and xts library(xts) data(sample_matrix) sample.xts <- as.xts(sample_matrix, descr = "my new xts object") fncDepth(sample.xts)#> Depth method: MBD #> [1] 0.7847222 0.5763889 0.5844907 0.7854167