interval.dist: Compute the squared difference between two scores.

View source: R/krippendorff.R

interval.distR Documentation

Compute the squared difference between two scores.

Description

Compute the squared difference between two scores.

Usage

interval.dist(x, y)

Arguments

x

a score.

y

a score.

Details

This function computes the squared difference between two scores. This may be an appropriate distance function for the interval level of measurement. NA's are handled gracefully.

Value

(x-y)^2, or 0 if x or y is NA.

See Also

nominal.dist, ratio.dist


drjphughesjr/krippendorffsalpha documentation built on April 3, 2022, 5:52 a.m.