calcDepth_old: Calculating the K-sign depth (deprecated)

Description Usage Arguments Value References Examples

View source: R/calcDepth_old.R

Description

calcDepth_old calculates the K-sign depth of a given vector of residuals in time complexity O(N^K)

Usage

1

Arguments

res

[numeric]
numeric vector of residuals

K

[integer(1)]
the parameter K for the sign depth

transform

[logical(1)]
Should the depth be transformed by the formula N * (res - 0.5^(K-1)), so that the distribution of the K-sign depth converges for large number of data points N? Default is FALSE.

Value

[numeric(1)] the calculated K-sign depth of res.

References

Horn M. Sign depth for parameter tests in multiple regression. TU Dortmund University; 2021.

Examples

1
2
calcDepth_old(rnorm(10), 3)
calcDepth_old(runif(100, -1, 1), 4, transform = TRUE)

melaniehorn/GSignTest documentation built on July 11, 2021, 1:18 a.m.