GallagherInv: 1 minus Gallagher index

View source: R/GallagherInv.R

GallagherInvR Documentation

1 minus Gallagher index

Description

Calculates 1 minus the Gallagher index.

Usage

GallagherInv(Z,R)

Arguments

Z

Population vector

R

Vector for the representatives

Details

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

Value

Representation score

Author(s)

Didier Ruedin

See Also

Gallagher


polrep documentation built on Jan. 5, 2024, 3:01 a.m.