relrep: Calculates relative representation scores

View source: R/relrep.R

relrepR Documentation

Calculates relative representation scores

Description

Calculates relative representation scores based on a population vector and a vector for the representatives.

Usage

relrep(Z,R,k=1)

Arguments

Z

Population vector

R

Vector for the representatives

k

Identify group for comparison

Details

Relative representation scores compare one group with all other groups combined. For instance, we can compare the majority group with all minority groups combined into one group. Relative representation scores calculate the proportion of the combined minorities in the representatives by the proportion of the combined minorities in the population. Unless specified, 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, but you can specify any other group with a value of k.

Value

Representation score

Author(s)

Didier Ruedin

See Also

relrepMax


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