Skip to contents

Trims central ranks; only tail ranks contribute. Score: a_i = max(R_i - (1-q)(N+1), 0) - max(q(N+1) - R_i, 0)

Usage

morie_percentile_modified_rank(x, y, q = 0.25)

Arguments

x, y

Numeric vectors.

q

Tail fraction in (0, 0.5). Default 0.25.

Value

Named list: statistic, p_value, z, n, m, q.

Examples

morie_percentile_modified_rank(x = rnorm(50), y = rnorm(50))
#> $statistic
#> [1] 40.75
#> 
#> $p_value
#> [1] 0.4198016
#> 
#> $z
#> [1] 0.8067655
#> 
#> $n
#> [1] 100
#> 
#> $m
#> [1] 50
#> 
#> $q
#> [1] 0.25
#> 
#> $method
#> [1] "Percentile-modified rank (Gastwirth) test"
#>