Learn R Programming

uwo4419 (version 0.3.0)

unalike: Unalikability

Description

Unalikability is a measure of variation for categorical variables. It essentially measures the probability of drawing two non-equal values at random.

Usage

unalike(x)

Arguments

x

A factor or other variable with relatively few levels

Value

The unalikability score.

References

Gary D. Kader and Mike Perry (2007) ‘Variability for Categorical Variables’ Journal of Statistics Education Volume 15, Number 2. http://jse.amstat.org/v15n2/kader.html

Examples

Run this code
# NOT RUN {
data(Alberta)
unalike(alberta$k6group)
# }

Run the code above in your browser using DataLab