1 | attina_index(temp_freq, rescale = FALSE)
|
temp_freq |
A vector containing the number or share of votes for yes, no and abstain in any given order. If a vector of a shorter length than 3 is given, the count/frequency of the missing vote option(s) is assumed to be 0. |
rescale |
Default: FALSE. If True the result gets rescaled from its former range of -33.333 to 100 to a range of 0 to 1. A value of 0.25 now represents that 50 |
This function allows you to easily calculate Attina´s Index of Agreement for a given vote. Examples of using attina_index() :
test_attina <- c(15, 2, 5) test_attina_shorter <- c(15,2) test_attina_longer <- c(15,2,5,6)
attina_index(test_attina) attina_index(test_attina_shorter) attina_index(test_attina_longer) rollcall
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.