The procedure below draws on NAG algorithms.
The scores in each column are ranked,
denoting the rank within block
of the observation in treatment/math-b40669fa7371edf874815830e563b2ce.png?v=0)
. Average ranks are assigned to tie scores.
, for
is calculated as /math-ee386a5a74bf21c3ecc749d1b3e44aca.png?v=0)
The significance level is compared to the
distribution with
degrees of freedom, where k is the total number of samples
For more details of the algorithm, please refer to nag_friedman_test (g08aec)