Calculates polarization, based on measure of agreement A
A frequency vector
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.
The function returns a polarization score
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.