Calculates congruence.

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

`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 |

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).

Representation score

Didier Ruedin

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.