| RelativeRepresentation | R Documentation |
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)
BodyMemberCharacteristics |
A vector specifying characteristics for each member of a political body. |
PopShares |
A numeric vector of population group proportions. Names must
correspond to identities in |
a, b |
Parameters controlling the affine transformation of the
representation index, passed to |
standardize |
Logical. If |
nMonte |
A positive integer denoting number of Monte Carlo iterations used
for estimating the standard deviation when |
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.
ObservedRepresentation,
ExpectedRepresentation,
SDRepresentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.