Calculate the Cox-Shugart measure of proportionality

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

`Z` |
Population vector |

`R` |
Vector for the representatives |

This function calculates the Cox-Shugart measure of proportionality. It provides the slope of the regression line. For perfect representation, a score of 1 is calculated, for values smaller than 1, smaller groups in population are numerically over-represented. The Cox-Shugart measure of proportionality indicates the direction of mis-representation. It is also known as the regression index.

A single score given the population and representatives

Didier Ruedin

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.