{
  "_id": "6adc8a5958000136b5c83d32",
  "Package": "eco",
  "Version": "4.0-6",
  "Date": "2025-12-08",
  "Title": "Ecological Inference in 2x2 Tables",
  "Authors@R": "c(\nperson(\"Kosuke\", \"Imai\", , \"imai@Harvard.Edu\", c(\"aut\", \"cre\")),\nperson(\"Ying\", \"Lu\", , \"ying.lu@nyu.edu\", c(\"aut\")),\nperson(\"Aaron\", \"Strauss\", , \"aaronbstrauss@gmail.com\", c(\"aut\")),\nperson(\"Hubert\", \"Jin\", , \"hubertj@princeton.edu\", c(\"ctb\"))\n)",
  "Maintainer": "Kosuke Imai <imai@Harvard.Edu>",
  "Description": "Implements the Bayesian and likelihood methods proposed in\nImai, Lu, and Strauss (2008 <doi:10.1093/pan/mpm017>) and (2011\n<doi:10.18637/jss.v042.i05>) for ecological inference in 2 by 2\ntables as well as the method of bounds introduced by Duncan and\nDavis (1953).  The package fits both parametric and\nnonparametric models using either the Expectation-Maximization\nalgorithms (for likelihood models) or the Markov chain Monte\nCarlo algorithms (for Bayesian models).  For all models, the\nindividual-level data can be directly incorporated into the\nestimation whenever such data are available. Along with\nin-sample and out-of-sample predictions, the package also\nprovides a functionality which allows one to quantify the\neffect of data aggregation on parameter estimation and\nhypothesis testing under the parametric likelihood models.",
  "LazyLoad": "yes",
  "LazyData": "yes",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/kosukeimai/eco",
  "BugReports": "https://github.com/kosukeimai/eco/issues",
  "RoxygenNote": "7.3.3",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-24 10:33:02 UTC",
    "User": "root"
  },
  "Author": "Kosuke Imai [aut, cre], Ying Lu [aut], Aaron Strauss [aut],\nHubert Jin [ctb]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-12-08 12:10:02 UTC",
  "RemoteUrl": "https://github.com/cran/eco",
  "RemoteRef": "HEAD",
  "RemoteSha": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
  "_user": "cran",
  "_type": "src",
  "_file": "eco_4.0-6.tar.gz",
  "_fileid": "https://r2.ropensci.org/4697ad08ee582179aecc1e156650a6b4c33bf3716b44a3b40633ac184aaa5de2",
  "_filesize": 414073,
  "_sha256": "4697ad08ee582179aecc1e156650a6b4c33bf3716b44a3b40633ac184aaa5de2",
  "_expires": "2027-02-01T10:37:11.000Z",
  "_created": "2026-10-24T10:33:02.000Z",
  "_published": "2026-10-24T10:37:13.454Z",
  "_upstream": "https://github.com/cran/eco",
  "_status": "success",
  "_maintainer": {
    "name": "Kosuke Imai",
    "email": "imai@harvard.edu",
    "login": "kosukeimai",
    "description": "",
    "uuid": 6608243
  },
  "_jobs": [
    {
      "job": 120850073489,
      "time": 79,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12556884462"
    },
    {
      "job": 120850073528,
      "time": 108,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12556259556"
    },
    {
      "job": 120850073505,
      "time": 82,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12557151953"
    },
    {
      "job": 120850073595,
      "time": 101,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12556899445"
    },
    {
      "job": 120849466903,
      "time": 180,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12557122975"
    },
    {
      "job": 120850073425,
      "time": 89,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12557142870"
    },
    {
      "job": 120850073503,
      "time": 199,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12557103593"
    },
    {
      "job": 120850073464,
      "time": 120,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12557149123"
    },
    {
      "job": 120850073479,
      "time": 210,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12557690593"
    },
    {
      "job": 120850073535,
      "time": 94,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12556729924"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/40086140984",
  "_commit": {
    "id": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
    "author": "Kosuke Imai <imai@Harvard.Edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 4.0-6\n",
    "time": 1765195802
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.0",
      "role": "Depends"
    },
    {
      "package": "MASS",
      "role": "Depends"
    },
    {
      "package": "utils",
      "role": "Depends"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-43",
      "n": 2
    },
    {
      "week": "2025-50",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "4.0-6",
      "date": "2025-12-08"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "kosukeimai",
      "count": 3,
      "uuid": 6608243
    },
    {
      "user": "yinglunyu",
      "count": 2,
      "uuid": 202015691
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 353,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/eco"
  },
  "_devurl": "https://github.com/kosukeimai/eco",
  "_searchresults": 8,
  "_topics": [
    "openblas"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/eco.html",
    "extra/manual.pdf"
  ],
  "_homeurl": "https://github.com/kosukeimai/eco",
  "_realowner": "kosukeimai",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0-1",
      "date": "2004-12-21"
    },
    {
      "version": "1.1-1",
      "date": "2005-06-16"
    },
    {
      "version": "2.1-1",
      "date": "2005-07-09"
    },
    {
      "version": "2.2-1",
      "date": "2005-09-30"
    },
    {
      "version": "2.2-2",
      "date": "2006-09-24"
    },
    {
      "version": "3.0-1",
      "date": "2007-01-01"
    },
    {
      "version": "3.0-2",
      "date": "2007-01-11"
    },
    {
      "version": "3.1-1",
      "date": "2007-06-28"
    },
    {
      "version": "3.1-2",
      "date": "2009-02-01"
    },
    {
      "version": "3.1-4",
      "date": "2009-07-18"
    },
    {
      "version": "3.1-5",
      "date": "2011-04-26"
    },
    {
      "version": "3.1-6",
      "date": "2012-06-12"
    },
    {
      "version": "3.1-7",
      "date": "2015-03-19"
    },
    {
      "version": "4.0-1",
      "date": "2017-08-01"
    },
    {
      "version": "4.0-3",
      "date": "2022-11-03"
    },
    {
      "version": "4.0-4",
      "date": "2025-10-21"
    },
    {
      "version": "4.0-5",
      "date": "2025-10-23"
    },
    {
      "version": "4.0-6",
      "date": "2025-12-11"
    }
  ],
  "_exports": [
    "eco",
    "ecoBD",
    "ecoML",
    "ecoNP",
    "Qfun",
    "varcov"
  ],
  "_datasets": [
    {
      "name": "census",
      "title": "Black Illiteracy Rates in 1910 US Census",
      "object": "census",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Y",
        "X",
        "N",
        "W1",
        "W2"
      ],
      "rows": 1040,
      "table": true,
      "tojson": true
    },
    {
      "name": "forgnlit30",
      "title": "Foreign-born literacy in 1930",
      "object": "forgnlit30",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Y",
        "X",
        "W1",
        "W2",
        "ICPSR"
      ],
      "rows": 48,
      "table": true,
      "tojson": true
    },
    {
      "name": "forgnlit30c",
      "title": "Foreign-born literacy in 1930, County Level",
      "object": "forgnlit30c",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Y",
        "X",
        "W1",
        "W2",
        "state",
        "county"
      ],
      "rows": 1976,
      "table": true,
      "tojson": true
    },
    {
      "name": "housep88",
      "title": "Electoral Results for the House and Presidential Races in 1988",
      "object": "housep88",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Y",
        "X",
        "N",
        "HPCT",
        "DIST"
      ],
      "rows": 424,
      "table": true,
      "tojson": true
    },
    {
      "name": "reg",
      "title": "Voter Registration in US Southern States",
      "object": "reg",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X",
        "Y",
        "N",
        "W1",
        "W2"
      ],
      "rows": 275,
      "table": true,
      "tojson": true
    },
    {
      "name": "wallace",
      "title": "Black voting rates for Wallace for President, 1968",
      "object": "wallace",
      "class": [
        "data.frame"
      ],
      "fields": [
        "FIPS",
        "X",
        "Y"
      ],
      "rows": 1009,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "census",
      "title": "Black Illiteracy Rates in 1910 US Census",
      "topics": [
        "census"
      ]
    },
    {
      "page": "eco",
      "title": "Fitting the Parametric Bayesian Model of Ecological Inference in 2x2 Tables",
      "topics": [
        "eco"
      ]
    },
    {
      "page": "ecoBD",
      "title": "Calculating the Bounds for Ecological Inference in RxC Tables",
      "topics": [
        "ecoBD"
      ]
    },
    {
      "page": "ecoML",
      "title": "Fitting Parametric Models and Quantifying Missing Information for Ecological Inference in 2x2 Tables",
      "topics": [
        "ecoML"
      ]
    },
    {
      "page": "ecoNP",
      "title": "Fitting the Nonparametric Bayesian Models of Ecological Inference in 2x2 Tables",
      "topics": [
        "ecoNP"
      ]
    },
    {
      "page": "forgnlit30",
      "title": "Foreign-born literacy in 1930",
      "topics": [
        "forgnlit30"
      ]
    },
    {
      "page": "forgnlit30c",
      "title": "Foreign-born literacy in 1930, County Level",
      "topics": [
        "forgnlit30c"
      ]
    },
    {
      "page": "housep88",
      "title": "Electoral Results for the House and Presidential Races in 1988",
      "topics": [
        "housep88"
      ]
    },
    {
      "page": "predict.eco",
      "title": "Out-of-Sample Posterior Prediction under the Parametric Bayesian Model for Ecological Inference in 2x2 Tables",
      "topics": [
        "predict.eco"
      ]
    },
    {
      "page": "predict.ecoNP",
      "title": "Out-of-Sample Posterior Prediction under the Nonparametric Bayesian Model for Ecological Inference in 2x2 Tables",
      "topics": [
        "predict.ecoNP"
      ]
    },
    {
      "page": "predict.ecoNPX",
      "title": "Out-of-Sample Posterior Prediction under the Nonparametric Bayesian Model for Ecological Inference in 2x2 Tables",
      "topics": [
        "predict.ecoNPX"
      ]
    },
    {
      "page": "predict.ecoX",
      "title": "Out-of-Sample Posterior Prediction under the Parametric Bayesian Model for Ecological Inference in 2x2 Tables",
      "topics": [
        "predict.ecoX"
      ]
    },
    {
      "page": "print.summary.eco",
      "title": "Print the Summary of the Results for the Bayesian Parametric Model for Ecological Inference in 2x2 Tables",
      "topics": [
        "print.summary.eco"
      ]
    },
    {
      "page": "print.summary.ecoML",
      "title": "Print the Summary of the Results for the Maximum Likelihood Parametric Model for Ecological Inference in 2x2 Tables",
      "topics": [
        "print.summary.ecoML"
      ]
    },
    {
      "page": "print.summary.ecoNP",
      "title": "Print the Summary of the Results for the Bayesian Nonparametric Model for Ecological Inference in 2x2 Tables",
      "topics": [
        "print.summary.ecoNP"
      ]
    },
    {
      "page": "Qfun",
      "title": "Fitting the Parametric Bayesian Model of Ecological Inference in 2x2 Tables",
      "topics": [
        "Qfun"
      ]
    },
    {
      "page": "reg",
      "title": "Voter Registration in US Southern States",
      "topics": [
        "reg"
      ]
    },
    {
      "page": "summary.eco",
      "title": "Summarizing the Results for the Bayesian Parametric Model for Ecological Inference in 2x2 Tables",
      "topics": [
        "print.eco",
        "summary.eco"
      ]
    },
    {
      "page": "summary.ecoML",
      "title": "Summarizing the Results for the Maximum Likelihood Parametric Model for Ecological Inference in 2x2 Tables",
      "topics": [
        "summary.ecoML"
      ]
    },
    {
      "page": "summary.ecoNP",
      "title": "Summarizing the Results for the Bayesian Nonparametric Model for Ecological Inference in 2x2 Tables",
      "topics": [
        "summary.ecoNP"
      ]
    },
    {
      "page": "varcov",
      "title": "Calculate the variance or covariance of the object",
      "topics": [
        "varcov"
      ]
    },
    {
      "page": "wallace",
      "title": "Black voting rates for Wallace for President, 1968",
      "topics": [
        "wallace"
      ]
    }
  ],
  "_rundeps": [
    "MASS"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    }
  ],
  "_score": 1.3010299956639813,
  "_indexed": false,
  "_nocasepkg": "eco",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://kosukeimai.r-universe.dev/eco",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "4.0-6",
      "date": "2026-10-24T10:34:28.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
      "fileid": "https://r2.ropensci.org/39c9b7de731bb834416e688b6a485cdf9eacc8e62ec2bab36c894eae48b16e3a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40086140984"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "4.0-6",
      "date": "2026-10-24T10:34:47.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
      "fileid": "https://r2.ropensci.org/3aea0ef0a8daa41483959ca5a5f18d7b96a4ac780da05e42b58da65bf210b6ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40086140984"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "4.0-6",
      "date": "2026-10-24T10:34:32.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
      "fileid": "https://r2.ropensci.org/7b0e0bcbf7f5cdf32865b27d39a3e8bc954d4b80468a3080f1d5ab01047d419a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40086140984"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "4.0-6",
      "date": "2026-10-24T10:34:48.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
      "fileid": "https://r2.ropensci.org/c3bfcc31ad8a5634a6b1d87a6ec0b447dec2d21372751bc82520f4911b2df997",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40086140984"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "4.0-6",
      "date": "2026-10-24T10:34:48.000Z",
      "arch": "emscripten",
      "commit": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
      "fileid": "https://r2.ropensci.org/d1193c6e5eff71040d338627b856260b2526ad256268a6eec86173a3e560b9e4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40086140984"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "4.0-6",
      "date": "2026-10-24T10:36:06.000Z",
      "arch": "aarch64",
      "commit": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
      "fileid": "https://r2.ropensci.org/2e655b3b5dd89b0719e5dd91c38969ad2a31836971ba42408cc6fb9a13a269ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40086140984"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "4.0-6",
      "date": "2026-10-24T10:34:03.000Z",
      "arch": "x86_64",
      "commit": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
      "fileid": "https://r2.ropensci.org/fcc50ffc477e6a51c1cc4a9b32c26cf483734a19ef5a422b09d495ddfffc4e66",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40086140984"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "4.0-6",
      "date": "2026-10-24T10:36:17.000Z",
      "arch": "aarch64",
      "commit": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
      "fileid": "https://r2.ropensci.org/b57bfbb8e89e0b20f28eea3478cdbae4a97f0ddfa1e48aeecc4beb0a4456a8e3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40086140984"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "4.0-6",
      "date": "2026-10-24T10:34:12.000Z",
      "arch": "x86_64",
      "commit": "ee12943824deb2a45ce1cac39957a6ed0bc138ee",
      "fileid": "https://r2.ropensci.org/004e58507eadff6a04875efef7dd7ae33836f4d493a4158d3baf0c82c0719ef4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40086140984"
    }
  ]
}