utilsTieProbability {rSRD} | R Documentation |
utilsTieProbability
Description
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.
Usage
utilsTieProbability(x)
Arguments
x |
A vector. |
Value
Returns the tie probability as a numeric value.
Author(s)
Ali Tugay Sen, Linus Olsson linusmeol@gmail.com
Examples
x <-c(1,2,4,4,5,5,6)
rSRD::utilsTieProbability(x)
[Package rSRD version 0.1.7 Index]