scoreD: Representation score D

Description

Calculates the (potential) representation score D.

Usage

1
scoreD(Z,R)

Arguments

Z

Population vector

R

Vector for the representatives

Details

The representation score is calculated as: sum(Z^2/R^2).

Value

Representation score

Author(s)

Didier Ruedin


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

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