utilsTieProbability | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.