powered by
Symmetric Atkinson Index calculates the symmetric Atkinson index
atkinson_index(grp_a, grp_b)
vector (usually corresponds to a column in a webtrack data frame) indicating the number of individuals of group A using a website
vector (usually corresponds to a column in a webtrack data frame) indicating the number of individuals of group B using a website
Frankel, David, and Oscar Volij. "Scale Invariant Measures of Segregation "Working Paper, 2008.
# perfect score grp_a <- c(5, 5, 0, 0) grp_b <- c(0, 0, 5, 5) atkinson_index(grp_a, grp_b) grp_a <- c(5, 5, 5, 5) grp_b <- c(5, 5, 5, 5) atkinson_index(grp_a, grp_b)
Run the code above in your browser using DataLab