Skip to contents

Supports incomplete rankings via NA entries. For complete rankings, W = 12 S / (k^2 (n^3 - n)) where S is the sum of squared deviations of object rank-sums from their mean. Significance via chi-square approximation k(n-1) W ~ chi-square with n-1 df.

Usage

morie_concordance_incomplete(x)

Arguments

x

Matrix (n objects rows x k rankers cols); NA = not ranked.

Value

Named list: statistic (W), p_value, df, chi2, n, k.

Examples

morie_concordance_incomplete(x = rnorm(50))
#> $statistic
#> [1] NA
#> 
#> $p_value
#> [1] NA
#> 
#> $df
#> [1] 49
#> 
#> $chi2
#> [1] NA
#> 
#> $n
#> [1] 50
#> 
#> $k
#> [1] 1
#> 
#> $method
#> [1] "Kendall's coefficient of concordance W"
#>