This is a set of routines for GNU R that implement Imai and Lu's parametric and nonparametric Bayesian ecological inference algorithms using Markov chain Monte Carlo estimation. Ecological inference is a statistical technique designed to recover individual-level information from aggregate-level data. . The suggested r-cran-mcmcpack package includes other EI estimators that may be useful alternatives to those included in this package.