R/my.wilcox.R

Defines functions my.wilcox

# in delong paper x = a, y = b
my.wilcox <- function(x, y) {
  if (x > y) {
    return(1)
  }
  if (x == y) {
    return(1 / 2)
  }
  if (x < y) {
    return(0)
  }
}

Try the SurrogateRank package in your browser

Any scripts or data that you put into this service are public.

SurrogateRank documentation built on June 8, 2025, 10:27 a.m.