utilsTieProbability {rSRD} | R Documentation |
Calculates the tie probability for a given vector. The tie probability is defined as the number of consecutive tied component-pairs in the sorted vector divided by the size of the vector minus 1.
utilsTieProbability(x)
x |
A vector. |
Returns the tie probability as a numeric value.
Ali Tugay Sen, Linus Olsson linusmeol@gmail.com
x <-c(1,2,4,4,5,5,6)
rSRD::utilsTieProbability(x)