Description Usage Arguments Details Value Author(s)

Calculates the difference between the proportion of minorities in populaiton and the proportion of minorities among the representatives.

1 | ```
diffScore(Z,R)
``` |

`Z` |
Population vector |

`R` |
Vector for the representatives |

The majority group must be in first position of the vector. All groups in positions 2 to n are considered minority groups; no test is applied to check whether the groups are numerical minorities.

Difference in proportions

Didier Ruedin

polrep documentation built on Feb. 24, 2018, 3:01 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.