ObservedRepresentation | R Documentation |
Finds the degree of observed representation for any group in a political body.
ObservedRepresentation(BodyMemberCharacteristics, PopShares, BodyShares, a = -0.5, b = 1)
BodyMemberCharacteristics |
A vector specifying the characteristics for members of a political body. |
PopShares |
A numeric vector specifying population shares of identities specified in the body-member characteristics input. The names of the entries in |
BodyShares |
(optional) A numeric vector with same structure as |
a , b |
Parameters controlling the affine transformation for how the representation measure is summarized.
That is, |
The observed degree of representation (a scalar). By default, this quantity is the Rose Index of Proportionality.
ExpectedRepresentation
for calculating expected representation scores under random sampling.
SDRepresentation
for calculating representation unexplained under the random sampling model.
ObsRep <- ObservedRepresentation(
BodyMemberCharacteristics = c("A","A","C","A","C","A"),
PopShares = c("A"=1/4,"B"=2/4, "C"=1/4))
print( ObsRep )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.