Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dsquared

Calculate d-squared


Description

Calculate Blair and Lacy's d-squared.

Usage

dsquared(V)

Arguments

V

A frequency vector

Details

This function calculates Blair and Lacy's d-squared, a measure of concentration based on squared Euclidean distances. This function follows the presentation by Blair and Lacy 2000. The measure l-squared normalizes the values and is implemented as lsquared.

Value

The function returns the d-squared.

Author(s)

Didier Ruedin

References

Blair, J., and M. Lacy. 2000. Statistics of Ordinal Variation. Sociological Methods \& Research 28 (3): 251-280.

See Also

Examples

# Sample data
V <- c(30,40,210,130,530,50,10)
dsquared(V)

agrmt

Calculate Concentration and Dispersion in Ordered Rating Scales

v1.42.4
MIT + file LICENSE
Authors
Didier Ruedin [aut, cre] Clem Aeppli [ctb]
Initial release
2020-08-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.