diffScore: Difference between proportion of minorities in populaiton and...

View source: R/diffScore.R

diffScoreR Documentation

Difference between proportion of minorities in populaiton and representatives

Description

Calculates the difference between the proportion of minorities in populaiton and the proportion of minorities among the representatives.

Usage

diffScore(Z,R)

Arguments

Z

Population vector

R

Vector for the representatives

Details

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.

Value

Difference in proportions

Author(s)

Didier Ruedin


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