binrep: Determine binary representation

View source: R/binrep.R

binrepR Documentation

Determine binary representation

Description

Determine if binary representation of minority groups exists. Although the function requires a vector for the population vector and a vector for the representatives, only the representatives' is evaluated.

Usage

binrep(Z,R)

Arguments

Z

Population vector

R

Vector for the representatives

Details

This function is not concerned with proportions, and a single representative from any of possibly multiple minority groups is considered as "minorities present". 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

TRUE if minority groups are present among the representatives, FALSE if they are absent.

Author(s)

Didier Ruedin


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