CT_Distribution {ConcordanceTest} | R Documentation |
This function computes the probability distribution tables of the Concordance coefficient and Kruskal-Wallis statistic. Probability distribution tables can be obtained exactly or by simulation (default option).
CT_Distribution(Sample_Sizes, Num_Sim = 10000, H = 0)
Sample_Sizes |
Numeric vector ( |
Num_Sim |
Number of simulations in order to obtain the probability distribution of the statistics. The default is 10000. If set to 0, the probability distribution tables are obtained exactly. Otherwise they are obtained by simulation. |
H |
0 by default. If set to 1, the probability distribution table of the Kruskal-Wallis statistic is also calculated and returned. |
The function returns a list with the following elements:
C_freq
: Matrix with the probability distribution of the Concordance coefficient. Each row in the matrix contains the disorder, the value of the coefficient, the frequency and its probability.
H_freq
: Matrix with the probability distribution of the Kruskal-Wallis statistic. Each row in the matrix contains the value of the statistic, the frequency and its probability (only if H = 1).
The computational time in exact calculations increases exponentially with the number of elements and with the number of sets.
Sample_Sizes <- c(5,4) CT_Distribution(Sample_Sizes, Num_Sim = 0) CT_Distribution(Sample_Sizes, Num_Sim = 0, H = 1) CT_Distribution(Sample_Sizes, Num_Sim = 1000) CT_Distribution(Sample_Sizes, Num_Sim = 1000, H = 1)