{
  "_id": "6aeb09f0818c9e3ef6dc0f91",
  "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",
  "Repository": "https://kosukeimai.r-universe.dev",
  "Date/Publication": "2025-12-09 02:31:57 UTC",
  "RemoteUrl": "https://github.com/kosukeimai/eco",
  "RemoteRef": "HEAD",
  "RemoteSha": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-04 10:28:13 UTC",
    "User": "root"
  },
  "Author": "Kosuke Imai [aut, cre],\nYing Lu [aut],\nAaron Strauss [aut],\nHubert Jin [ctb]",
  "_user": "kosukeimai",
  "_type": "src",
  "_file": "eco_4.0-6.tar.gz",
  "_fileid": "https://r2.ropensci.org/16edce740e4660a7da346b3cdcfbc698178b7d3a13b870d910da41a6c767d29a",
  "_filesize": 414877,
  "_sha256": "16edce740e4660a7da346b3cdcfbc698178b7d3a13b870d910da41a6c767d29a",
  "_expires": "2027-02-12T10:33:18.000Z",
  "_created": "2026-11-04T10:28:13.000Z",
  "_published": "2026-11-04T10:33:20.285Z",
  "_upstream": "https://github.com/kosukeimai/eco",
  "_status": "success",
  "_maintainer": {
    "name": "Kosuke Imai",
    "email": "imai@harvard.edu",
    "login": "kosukeimai",
    "description": "",
    "uuid": 6608243
  },
  "_jobs": [
    {
      "job": 126521524462,
      "time": 117,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13313024519"
    },
    {
      "job": 126521525393,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13313967044"
    },
    {
      "job": 126521526430,
      "time": 119,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13314276675"
    },
    {
      "job": 126521524432,
      "time": 104,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13313548853"
    },
    {
      "job": 126521526327,
      "time": 85,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13313703422"
    },
    {
      "job": 126521524500,
      "time": 262,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13314222204"
    },
    {
      "job": 126521524130,
      "time": 124,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13313488947"
    },
    {
      "job": 126521524256,
      "time": 196,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13313957174"
    },
    {
      "job": 126520153987,
      "time": 217,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13314505220"
    },
    {
      "job": 126521524185,
      "time": 83,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13313763088"
    },
    {
      "job": 126521524120,
      "time": 205,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13314207134"
    },
    {
      "job": 126521525157,
      "time": 123,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13312804957"
    },
    {
      "job": 126521524339,
      "time": 100,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13313492868"
    },
    {
      "job": 126521525644,
      "time": 185,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13313253934"
    },
    {
      "job": 126521524365,
      "time": 85,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13313543614"
    }
  ],
  "_buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821",
  "_commit": {
    "id": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
    "author": "Kosuke Imai <imai@harvard.edu>",
    "committer": "Kosuke Imai <imai@harvard.edu>",
    "message": "up\n",
    "time": 1765247517
  },
  "_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": "kosukeimai",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-50",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "hj08003",
      "count": 42,
      "uuid": 12300963
    },
    {
      "user": "kosukeimai",
      "count": 35,
      "uuid": 6608243
    },
    {
      "user": "fmkerckhof",
      "count": 2,
      "uuid": 2431458
    }
  ],
  "_userbio": {
    "uuid": 6608243,
    "type": "user",
    "name": "Kosuke Imai",
    "followers": 613
  },
  "_downloads": {
    "count": 434,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/eco"
  },
  "_devurl": "https://github.com/kosukeimai/eco",
  "_searchresults": 8,
  "_topics": [
    "openblas"
  ],
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/eco.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/kosukeimai/eco",
  "_realowner": "kosukeimai",
  "_cranurl": true,
  "_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"
      ]
    }
  ],
  "_readme": "https://github.com/kosukeimai/eco/raw/HEAD/README.md",
  "_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": 3.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "eco",
  "_universes": [
    "kosukeimai"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "4.0-6",
      "date": "2026-11-04T10:30:20.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/5bd43e1b457c95afb146571f2cd4017c490ed35fd4a43aa4ad96d11709ca6eaa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "4.0-6",
      "date": "2026-11-04T10:30:14.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/937ca978d1568b3b107e98a580af062251a17b01cb37e1b4ec413e3b9c9f9a70",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "4.0-6",
      "date": "2026-11-04T10:30:22.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/4fd2a56fccabf0633273275a49401466616aada09f1c32a23d929c1e28692974",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "4.0-6",
      "date": "2026-11-04T10:30:00.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/54e6ac52d8e6ef5c60b72b7673d064369a851ad763b46f20a4438e82aba14f14",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "4.0-6",
      "date": "2026-11-04T10:29:50.000Z",
      "arch": "aarch64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/80b82782d116c08fb2d0904514ac83d15fabedafdf702f0eb202b8d5d7c809a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "4.0-6",
      "date": "2026-11-04T10:31:34.000Z",
      "arch": "x86_64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/9c64c137c4df404814aed0ae5f9a0ed88ec718713146cf7e78d019d1f9eb8bec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "4.0-6",
      "date": "2026-11-04T10:30:14.000Z",
      "arch": "aarch64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/f24750a97d353829ea28a4128ebd1f44c4824f0c529beed365cf33df73f464ac",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "4.0-6",
      "date": "2026-11-04T10:31:15.000Z",
      "arch": "x86_64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/895bb94e153844622689cf9163f1e1b0e4af2b36e3f896b08ae56d6f4778e540",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "4.0-6",
      "date": "2026-11-04T10:29:58.000Z",
      "arch": "emscripten",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/d2048ca34bb6aaddada3a9fe53a8826978fce180399f153dd7672efe7764d791",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "4.0-6",
      "date": "2026-11-04T10:31:25.000Z",
      "arch": "aarch64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/9ab872b6998173967af4c55ed343d82aae5dd4b551f3b1a4cf46b87b4049b90c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "4.0-6",
      "date": "2026-11-04T10:29:22.000Z",
      "arch": "x86_64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/bef6ec82d19c3605f9759e8afa97fcbc45f67b0301bdc00912aa3b61ea98011e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "4.0-6",
      "date": "2026-11-04T10:29:25.000Z",
      "arch": "x86_64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/b9aac45138ae4df39ec7b45be67b1eb0c8b51abb815d10ba80ef4a32282534e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "4.0-6",
      "date": "2026-11-04T10:31:05.000Z",
      "arch": "aarch64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/3aa7987e1a47f4bfc5f0380d5bded16da0aa1c85b93ca6a75abacc18b128e280",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "4.0-6",
      "date": "2026-11-04T10:29:22.000Z",
      "arch": "x86_64",
      "commit": "cb7cbe37a6181a271a11fdf58a4f1d6dba83b8fb",
      "fileid": "https://r2.ropensci.org/1f520887f2e2d1c822472d1524d08b2d763f36c2ff727f82888ed033dd587184",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/41814001821"
    }
  ]
}