RaeInv: 1 minus Rae index

View source: R/RaeInv.R

RaeInvR Documentation

1 minus Rae index

Description

Calculates 1 minus the Rae index.

Usage

RaeInv(Z,R)

Arguments

Z

Population vector

R

Vector for the representatives

Details

The representation score is calculated as: 1 minus (the sum of the absolute differences |Z-R| divided by the number of categories).

Value

Representation score

Author(s)

Didier Ruedin

See Also

Rae


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