Skip to content

Ecological Inference in 2x2 Tables

0packages depend
3Kdownloads / year
20.4%test coverage
13/13flavors OK

Overview

About

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: 2.6 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 4.0-6
README· In the repository, left out of the releaseVignettesNoNEWSNoCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Cites a JSS article
Help pages
22
Examples that run
75%3 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
67%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
50%

Downloads

3K
CRAN downloads in the past year
Rank #14,600 · ~8/day · ~251/mo
Daily download trend is not available in this view yet.
34230 days
82590 days
3K1 year
Compare downloads with other packages →
Also on399 r2u7 autocran114 c2d4u

Repository

5Stars
3Forks
0Open issues
0Open PRs
2Releases
731Commits
8Commit identities
731 commits · Last activity 2025-12-09
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
16

Stars over time

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

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

Checks run against github.com/kosukeimai/eco on 2026-10-21.

Continuous integration (2)
GitHub ActionsTravis CI (config file)
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing eco adds no packages beyond those that come with R.

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.

Datasets

People & History

People (4)
Author, Maintainer since 4.0-4 (2025)
Author
Author · added in 4.0-1
Contributor · added in 4.0-1

Previously maintained by Ying Lu (3.1-1 to 4.0-3) and Kosuke Imai (1.1-1 to 3.0-2).

Listed in earlier versions (3)
Show 3 peopleHide 3 people
Ying Lu.
no longer listed · 1.1-1 to 2.2-2
Aaron Strauss.
no longer listed · 3.0-1 to 3.1-6
Aaron B Strauss.
no longer listed · 3.1-7
Releases (18)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 4.0-6Latest
    record
    2025-12-08 · current release · diff ↗
  • 4.0-5
    record
    2025-10-23 · diff ↗
  • unarchivedReturned to CRAN
    2025-10-21
  • 4.0-4
    record
    2025-10-21 · diff ↗
  • 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
  • unarchivedReturned to CRAN
    2022-11-03
  • 4.0-3
    record
    2022-11-03 · diff ↗ ·
    removed 10 exports
    summary.eco, summary.ecoNP, summary.ecoML, print.summary.eco, print.summary.ecoNP, print.summary.ecoML, predict.eco, predict.ecoX, predict.ecoNP, predict.ecoNPX
    added 1 export
    varcov
  • 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 eventsHide 36 earlier events
  • R
    R 3.5.0 released · 2018-04-23
  • 4.0-1
    record
    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
    record
    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
    record
    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
    record
    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
    record
    2009-07-18 · diff ↗ ·
    added 1 export
    Qfun
  • R
    R 2.9.0 released · 2009-04-17
  • 3.1-2
    record
    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
    record
    2007-06-28 · diff ↗
  • R
    R 2.5.0 released · 2007-04-24
  • 3.0-2
    record
    2007-01-11 · diff ↗
  • 3.0-1
    record
    2007-01-01 · diff ↗ ·
    added 3 exports
    ecoML, summary.ecoML, print.summary.ecoML
  • R
    R 2.4.0 released · 2006-10-03
  • 2.2-2
    record
    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
    record
    2005-09-30 · diff ↗ ·
    added 3 exports
    predict.ecoX, predict.ecoNP, predict.ecoNPX
  • 2.1-1
    record
    2005-07-09 · diff ↗ ·
    added 5 exports
    ecoBD, ecoNP, summary.ecoNP, print.summary.ecoNP, predict.eco
  • 1.1-1
    record
    2005-06-16 · diff ↗
  • R
    R 2.1.0 released · 2005-04-18
  • 1.0-1
    record
    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

Cite

Cite this package

Run in R for the authors' entry:

citation("eco")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.18637/jss.v042.i05.

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-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, 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