Learn R Programming

krippendorffsalpha (version 2.0)

nominal.dist: Apply the discrete metric to two scores.

Description

Apply the discrete metric to two scores.

Usage

nominal.dist(x, y)

Value

0 if x is equal to y or if either is NA, 1 otherwise.

Arguments

x

a score.

y

a score.

Details

This function applies the discrete metric to two scores. This may be an appropriate distance function for the nominal level of measurement. NA's are handled gracefully.

See Also

interval.dist, ratio.dist