F = (n - 1)(B - C)/(A - B) from within-row (mid)ranks.
Arguments
- X
Matrix, rows subjects, columns groups.
Value
list(statistic, df1, df2, p_value, A, B, C).
References
Wilcox, R. R. (2017). Modern Statistics for the Social and
Behavioral Sciences, 2nd ed. Eq (11.6).
Examples
FriedF(rbind(c(9, 7, 12), c(1, 10, 4), c(8, 2, 1), c(5, 6, 9)))$statistic
#> [1] 0.2