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] 20 29 44 40 12 49 5 42 16 3 4 23 50 25 46 41 13 43 26 22 45 37 14 28 9
#> [26] 35 18 30 27 19 32 34 21 47 48 11 10 33 8 17 38 15 2 36 6 7 1 39 24 31
#>
#> $n
#> [1] 50
#>
#> $ties
#> named list()
#>
#> $tie_correction
#> [1] 0
#>
#> $method
#> [1] "Midranks (Gibbons 5.6.2)"
#>
