smooth0 {emplikAUC} | R Documentation |
Non-Smoothed indicator function 0.5I[x=y] + I[x < y].
Description
This function computes the non-smoothed Indicator function 0.5I[x=y] + I[x < y].
Usage
smooth0(x, y)
Arguments
x |
a vector of observations, length m, for the first sample. |
y |
a vector of observations, length n, for the second sample. |
Details
This function is used in the original AUC computation (non-smoothed). You may achieve the same result with a (data dependent) small eps in the function smooth3(x,y,eps). But this is faster and no eps to worry about. It is listed here because users may find it useful.
Value
smooth0( )
returns a matrix of dimension ncol=length(y)
, nrow=length(x)
. The entry
of the matrix are values of 0.5I[x[i] = y[j]] + I[x[i] < y[j]].
Author(s)
Mai Zhou <maizhou@gmail.com>.
References
Zhao, Y., Ding, X. and Zhou (2021). Confidence Intervals of AUC and pAUC by Empirical Likelihood. Tech Report. https://www.ms.uky.edu/~mai/research/eAUC1.pdf
Examples
y <- c(10, 209, 273, 279, 324, 391, 566, 785)
x <- c(21, 38, 39, 51, 77, 185, 240, 289, 524)