Library: | stats |
See also: | wilcoxon2 |
Quantlet: | wilgenfun | |
Description: | calculates coefficients of the generating function of Wilcoxon test statistic |
Usage: | (co)=wilgenfun(k,m,a) | |
Input: | ||
k | scalar, the value of Wilcoxon test statistic | |
m | scalar, number of observations in the first sample | |
a | vector of scores | |
Output: | ||
co | vector, coefficients of the generating function |
library("stats") wilgenfun(20,4,1:10)
the generating function counts number of possibilities for obtaining the values up-to k under the null hypothesis [ 1,] 0 [ 2,] 0 [ 3,] 0 [ 4,] 0 [ 5,] 0 [ 6,] 0 [ 7,] 0 [ 8,] 0 [ 9,] 0 [10,] 1 [11,] 1 [12,] 2 [13,] 3 [14,] 5 [15,] 6 [16,] 9 [17,] 10 [18,] 13 [19,] 14 [20,] 16