Description Usage Arguments Details Value
Calculate Leiks' D of ordered data
1 | leiks_D(x)
|
x |
ordered;
ordered data or data that can be coerced into ordered via
|
Calculates the dispersion via the Leik's D statistic for ordinal data using the following formula;
D = 2 ∑ (F_{k} if F_{k} < 0.5 or 1 - F_{k} if F_{k} > 0.5) / (n - 1)
where n is the number of categories, and F_{k} is the cumulative distribution for category indexed by k, except in the case of one category, where the value 0 is returned.
numeric; scalar value of Leik's D
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.