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

polarization

Calculate polarization


Description

Calculates polarization, based on measure of agreement A

Usage

polarization(V, old = FALSE)

Arguments

V

A frequency vector

old

Specify old=TRUE to use the deprecated algorithm for agreement A

Details

This function calculates polarization by re-scaling agreement A introduced by Cees van der Eijk. Whereas agreement A ranges from -1 to 1, polarization ranges from 0 to 1. If all observations are in the same category, polarization is 0. With half the observations in one category, and half the observations in a different (non-neighbouring) category, polarization is 1. Polarization is 0.5 for a uniform distribution over all categories.

Value

The function returns a polarization score

Author(s)

Didier Ruedin

See Also

Examples

V <- c(30,40,210,130,530,50,10)
# Calculate polarization
polarization(V)
# The rate of polarization is given as 0.1943333

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.