Skip to content

eco

4.0-6

Ecological Inference in 2x2 Tables

0packages depend
2.4Kdownloads / year
20.4%test coverage
13/13checks pass

Overview

About
Maintained by Kosuke ImaiFirst published 2004-12-2118 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.05
20.4%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
50%

Downloads

2.4K
CRAN downloads in the past year
Rank #17,216 · ~7/day · ~203/mo
Daily download trend is not available in this view yet.
12430 days
61690 days
2.4K1 year
Compare downloads with other packages →
Also on426 r2u14 autocran58 c2d4u

Repository

Repository
5Stars
3Forks
0Open issues
0Open PRs
2Releases
731Commits
8Contributors
731 commits · Last activity 2025-12-09

Stars over time

2023-10-12 · 42026-07-07 · 5

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 1 family in the upstream repository

Checks run against github.com/kosukeimai/eco on 2026-08-03.

Continuous integration (2)
GitHub ActionsTravis CI
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (3)
R >= 2.0MASSutils
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Author · added in 4.0-1
Contributors (1)
Contributor · added in 4.0-1
Listed in earlier versions (3)
no longer listed · 1.1-1 to 2.2-2
no longer listed · 3.0-1 to 3.1-6
no longer listed · 3.1-7
Package Timeline

18 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 4.0-6Latest
    2025-12-08 · current release · diff ↗
  • 4.0-5
    2025-10-23 · diff ↗
  • 4.0-4
    2025-10-21 · diff ↗
  • unarchivedReturned to CRAN
    2025-10-21
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • archivedRemoved from CRAN
    2022-11-18
    issues were not corrected in time
  • 4.0-3
    2022-11-03 · diff ↗
  • unarchivedReturned to CRAN
    2022-11-03
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • archivedRemoved from CRAN
    2020-03-17
    check problems were not corrected despite reminders
  • R
    R 3.6.0 released · 2019-04-26
Show 36 earlier events
  • R
    R 3.5.0 released · 2018-04-23
  • 4.0-1
    2017-08-01 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 3.1-7
    2015-03-19 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • R
    R 3.0.0 released · 2013-04-03
  • 3.1-6
    2012-06-12 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • 3.1-5
    2011-04-26 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • R
    R 2.11.0 released · 2010-04-22
  • R
    R 2.10.0 released · 2009-10-26
  • 3.1-4
    2009-07-18 · diff ↗
  • R
    R 2.9.0 released · 2009-04-17
  • 3.1-2
    2009-02-01 · diff ↗
  • R
    R 2.8.0 released · 2008-10-20
  • R
    R 2.7.0 released · 2008-04-22
  • R
    R 2.6.0 released · 2007-10-03
  • 3.1-1
    2007-06-28 · diff ↗
  • R
    R 2.5.0 released · 2007-04-24
  • 3.0-2
    2007-01-11 · diff ↗
  • 3.0-1
    2007-01-01 · diff ↗
  • R
    R 2.4.0 released · 2006-10-03
  • 2.2-2
    2006-09-24 · diff ↗
  • R
    R 2.3.0 released · 2006-04-24
  • R
    R 2.2.0 released · 2005-10-06
  • 2.2-1
    2005-09-30 · diff ↗
  • 2.1-1
    2005-07-09 · diff ↗
  • 1.1-1
    2005-06-16 · diff ↗
  • R
    R 2.1.0 released · 2005-04-18
  • 1.0-1
    2004-12-21
  • R
    R 2.0.0 released · 2004-10-04

Package metadata

First published
2004-12-21
Total releases
18 / 22 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 2.0
Bundled data
77 KB / 6 files
Download size
174 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("eco")
Imai, K., Jin, H., Lu, Y., & Strauss, A. (2025). eco: Ecological Inference in 2x2 Tables (Version 4.0-6) [Computer software]. https://doi.org/10.32614/CRAN.package.eco

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for eco version 4.0-6 [Data set]. HJJB, LLC. Data release v2026-08-08. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-08, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy