eco4.0-6 package

Ecological Inference in 2x2 Tables

census

Black Illiteracy Rates in 1910 US Census

eco

Fitting the Parametric Bayesian Model of Ecological Inference in 2x2 T...

ecoBD

Calculating the Bounds for Ecological Inference in RxC Tables

ecoML

Fitting Parametric Models and Quantifying Missing Information for Ecol...

ecoNP

Fitting the Nonparametric Bayesian Models of Ecological Inference in 2...

forgnlit30

Foreign-born literacy in 1930

forgnlit30c

Foreign-born literacy in 1930, County Level

housep88

Electoral Results for the House and Presidential Races in 1988

predict.eco

Out-of-Sample Posterior Prediction under the Parametric Bayesian Model...

predict.ecoNP

Out-of-Sample Posterior Prediction under the Nonparametric Bayesian Mo...

predict.ecoNPX

Out-of-Sample Posterior Prediction under the Nonparametric Bayesian Mo...

predict.ecoX

Out-of-Sample Posterior Prediction under the Parametric Bayesian Model...

print.summary.eco

Print the Summary of the Results for the Bayesian Parametric Model for...

print.summary.ecoML

Print the Summary of the Results for the Maximum Likelihood Parametric...

print.summary.ecoNP

Print the Summary of the Results for the Bayesian Nonparametric Model ...

Qfun

Fitting the Parametric Bayesian Model of Ecological Inference in 2x2 T...

reg

Voter Registration in US Southern States

summary.eco

Summarizing the Results for the Bayesian Parametric Model for Ecologic...

summary.ecoML

Summarizing the Results for the Maximum Likelihood Parametric Model fo...

summary.ecoNP

Summarizing the Results for the Bayesian Nonparametric Model for Ecolo...

varcov

Calculate the variance or covariance of the object

wallace

Black voting rates for Wallace for President, 1968

Implements the Bayesian and likelihood methods proposed in Imai, Lu, and Strauss (2008 <doi:10.1093/pan/mpm017>) and (2011 <doi:10.18637/jss.v042.i05>) for ecological inference in 2 by 2 tables as well as the method of bounds introduced by Duncan and Davis (1953). The package fits both parametric and nonparametric models using either the Expectation-Maximization algorithms (for likelihood models) or the Markov chain Monte Carlo algorithms (for Bayesian models). For all models, the individual-level data can be directly incorporated into the estimation whenever such data are available. Along with in-sample and out-of-sample predictions, the package also provides a functionality which allows one to quantify the effect of data aggregation on parameter estimation and hypothesis testing under the parametric likelihood models.

  • Maintainer: Kosuke Imai
  • License: GPL (>= 2)
  • Last published: 2025-12-08