EI: A(n R) Program for Ecological Inference

Authors: Gary King, Margaret Roberts

This program provides a method of inferring individual behavior from aggregate data. It implements the statistical procedures, diagnostics, and graphics from the book A Solution to the Ecological Inference Problem: Reconstructing Individual Behavior from Aggregate Data (Princeton: Princeton University Press, 1997), by Gary King.




  • Reporting Bugs and Issues: Please use our Github Issue form.
  • Questions and feature requests: Discuss the software on our Discussions page.
  • EI for R:
    • Github: https://github.com/iqss-research/eir
    • To install: first, install and load the devtools library. Then, install_github("iqss-research/eir").
    • For documentation, from R, type library(ei), and then ?ei, or download  ei.pdf.
  • EI for Gauss: Click here