Description Usage Arguments Value Note Author(s) Examples
Calculates the proportion misclassified for a set of categorical values.
1 | proportion.misclassified(x, na.rm=TRUE)
|
x |
A categorical vector. |
na.rm |
If |
Numeric. Returns the value of the calculated proportion misclassified. Multiply by 100 for the percentage misclassified.
The proportion misclassified represents the percentage of observations that would have to swap category in order to achieve an even distribution of obsevations across categories. It is also known as the Index of Dissimilarity, althogh the IoD is normally used to compare the difference between the distribution of two groups across the same set of categories, rather than the difference of the distribution of one group and from a theoretical uniform distribution.
Paul Williamson
1 2 | ## Calculate the proportion misclassifed
proportion.misclassified(survey$Age)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.