congruence: Congruence

Description Usage Arguments Details Value Author(s) References See Also

View source: R/congruence.R

Description

Calculates congruence.

Usage

1
congruence(Z, R, from=NA, to=NA, steps=10000)

Arguments

Z

Population vector

R

Vector for the representatives

from

Beginning of conceptual space

to

End of conceptual space

steps

Number of steps at which to evaluate the CDF

Details

The representation score is calculated as the area between the cumulative distribution functions for the population and representatives: sum |cdf(Z) - cdf(R)|/n, where n is the distance between the minimum and maximum (to standardize). The beginning and end of the conceptual (policy) space can be specified if the vectors do not include the entire range of possible values. The number of steps at which the CDF are evaluated can be specified (default = 10000).

Value

Representation score

Author(s)

Didier Ruedin

References

Golder, M., and J. Stramski. 2010. Ideological Congruence and Electoral Institutions. American Journal of Political Science 54 (1): 90-106.

See Also

rcc


polrep documentation built on May 31, 2017, 4:24 a.m.

Search within the polrep package
Search all R packages, documentation and source code