Calculates the difference between observed and expected representation. Optionally standardizes this difference using the standard deviation of representation under the random sampling model.
RelativeRepresentation(BodyMemberCharacteristics,
PopShares,
a = -0.5, b = 1,
standardize = FALSE,
nMonte = 10000)A scalar giving the difference between observed and expected
representation. If standardize = TRUE, the difference is divided by the
standard deviation under the random sampling model.
A vector specifying characteristics for each member of a political body.
A numeric vector of population group proportions. Names must
correspond to identities in BodyMemberCharacteristics.
Parameters controlling the affine transformation of the
representation index, passed to ObservedRepresentation and
ExpectedRepresentation.
Logical. If TRUE, the difference between observed and
expected representation is divided by the standard deviation of representation
under random sampling.
A positive integer denoting number of Monte Carlo iterations used
for estimating the standard deviation when standardize = TRUE.
ObservedRepresentation,
ExpectedRepresentation,
SDRepresentation