Identical to rank(x, ties.method = "average") plus a tie-
correction term sum t_j^3 - t_j over tied groups.
Examples
midranks(x = rnorm(50))
#> $midranks
#> [1] 30 17 41 38 11 48 16 3 20 25 49 24 31 21 14 22 36 47 40 42 4 39 26 2 33
#> [26] 19 44 9 12 8 18 27 10 37 5 6 43 7 29 13 28 46 45 15 1 50 35 34 23 32
#>
#> $n
#> [1] 50
#>
#> $ties
#> named list()
#>
#> $tie_correction
#> [1] 0
#>
#> $method
#> [1] "Midranks (Gibbons 5.6.2)"
#>