Package: eco 4.0-6

eco: Ecological Inference in 2x2 Tables

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.

Authors:Kosuke Imai [aut, cre], Ying Lu [aut], Aaron Strauss [aut], Hubert Jin [ctb]

eco_4.0-6.tar.gz
eco_4.0-6.zip(r-4.7)eco_4.0-6.zip(r-4.6)eco_4.0-6.zip(r-4.5)
eco_4.0-6.tgz(r-4.6-x86_64)eco_4.0-6.tgz(r-4.6-arm64)eco_4.0-6.tgz(r-4.5-x86_64)eco_4.0-6.tgz(r-4.5-arm64)
eco_4.0-6.tar.gz(r-4.7-arm64)eco_4.0-6.tar.gz(r-4.7-x86_64)eco_4.0-6.tar.gz(r-4.6-arm64)eco_4.0-6.tar.gz(r-4.6-x86_64)
eco_4.0-6.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
eco/json (API)

# Install 'eco' in R:
install.packages('eco', repos = c('https://kosukeimai.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kosukeimai/eco/issues

Uses libs:
  • openblas– Optimized BLAS
Datasets:
  • census - Black Illiteracy Rates in 1910 US Census
  • 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
  • reg - Voter Registration in US Southern States
  • wallace - Black voting rates for Wallace for President, 1968

On CRAN:

Conda:

openblas

4.40 score 5 stars 8 scripts 145 downloads 6 exports 1 dependencies

Last updated from:cb7cbe37a6. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK168
linux-devel-x86_64OK119
source / vignettesOK190
linux-release-arm64OK134
linux-release-x86_64OK110
macos-release-arm64OK101
macos-release-x86_64OK195
macos-oldrel-arm64OK113
macos-oldrel-x86_64OK315
windows-develOK121
windows-releaseOK100
windows-oldrelOK87
wasm-releaseOK98

Exports:ecoecoBDecoMLecoNPQfunvarcov

Dependencies:MASS

Readme and manuals

Help Manual

Help pageTopics
Black Illiteracy Rates in 1910 US Censuscensus
Fitting the Parametric Bayesian Model of Ecological Inference in 2x2 Tableseco
Calculating the Bounds for Ecological Inference in RxC TablesecoBD
Fitting Parametric Models and Quantifying Missing Information for Ecological Inference in 2x2 TablesecoML
Fitting the Nonparametric Bayesian Models of Ecological Inference in 2x2 TablesecoNP
Foreign-born literacy in 1930forgnlit30
Foreign-born literacy in 1930, County Levelforgnlit30c
Electoral Results for the House and Presidential Races in 1988housep88
Out-of-Sample Posterior Prediction under the Parametric Bayesian Model for Ecological Inference in 2x2 Tablespredict.eco
Out-of-Sample Posterior Prediction under the Nonparametric Bayesian Model for Ecological Inference in 2x2 Tablespredict.ecoNP
Out-of-Sample Posterior Prediction under the Nonparametric Bayesian Model for Ecological Inference in 2x2 Tablespredict.ecoNPX
Out-of-Sample Posterior Prediction under the Parametric Bayesian Model for Ecological Inference in 2x2 Tablespredict.ecoX
Print the Summary of the Results for the Bayesian Parametric Model for Ecological Inference in 2x2 Tablesprint.summary.eco
Print the Summary of the Results for the Maximum Likelihood Parametric Model for Ecological Inference in 2x2 Tablesprint.summary.ecoML
Print the Summary of the Results for the Bayesian Nonparametric Model for Ecological Inference in 2x2 Tablesprint.summary.ecoNP
Fitting the Parametric Bayesian Model of Ecological Inference in 2x2 TablesQfun
Voter Registration in US Southern Statesreg
Summarizing the Results for the Bayesian Parametric Model for Ecological Inference in 2x2 Tablesprint.eco summary.eco
Summarizing the Results for the Maximum Likelihood Parametric Model for Ecological Inference in 2x2 Tablessummary.ecoML
Summarizing the Results for the Bayesian Nonparametric Model for Ecological Inference in 2x2 Tablessummary.ecoNP
Calculate the variance or covariance of the objectvarcov
Black voting rates for Wallace for President, 1968wallace