{
  "_id": "6a1f0dfcb401979e7341d1e9",
  "Package": "fastei",
  "Title": "Methods for ''A Fast Alternative for the R x C Ecological\nInference Case''",
  "Version": "1.1.0",
  "Authors@R": "c(person(given = \"Charles\", family = \"Thraves\", role = \"aut\", email = \"cthraves@dii.uchile.cl\", comment = c(ORCID = \"0000-0001-7491-7477\")),\nperson(given = \"Pablo\", family = \"Ubilla\", role = \"aut\", comment = c(ORCID = \"0009-0003-9048-1767\")),\nperson(given = \"Daniel\", family = \"Hermosilla\", role = c(\"aut\", \"cre\"), email = \"daniel.hermosilla.r@ug.uchile.cl\"))",
  "Description": "Estimates the probability matrix for the R×C Ecological\nInference problem using the Expectation-Maximization Algorithm\nwith four approximation methods for the E-Step, and an exact\nmethod as well. It also provides a bootstrap function to\nestimate the standard deviation of the estimated probabilities.\nIn addition, it has functions that aggregate rows optimally to\nhave more reliable estimates in cases of having few data\npoints. For comparing the probability estimates of two groups,\na Wald test routine is implemented. The library has data from\nthe first round of the Chilean Presidential Election 2021 and\ncan also generate synthetic election data. Methods described in\nThraves, Charles; Ubilla, Pablo; Hermosilla, Daniel (2024) ''A\nFast Ecological Inference Algorithm for the R×C case''\n<doi:10.2139/ssrn.4832834>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "NeedsCompilation": "yes",
  "BugReports": "https://github.com/DanielHermosilla/ecological-inference-elections/issues",
  "URL": "https://danielhermosilla.github.io/ecological-inference-elections/reference/fastei-package.html",
  "Roxygen": "list(markdown = TRUE, load = \"source\")",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "Repository": "https://danielhermosilla.r-universe.dev",
  "Date/Publication": "2026-01-17 01:38:18 UTC",
  "RemoteUrl": "https://github.com/danielhermosilla/ecological-inference-elections",
  "RemoteRef": "HEAD",
  "RemoteSha": "90ae0778e2515980c595d0eecf548003e45dc492",
  "Packaged": {
    "Date": "2026-05-17 09:00:22 UTC",
    "User": "root"
  },
  "Author": "Charles Thraves [aut] (ORCID: <https://orcid.org/0000-0001-7491-7477>),\nPablo Ubilla [aut] (ORCID: <https://orcid.org/0009-0003-9048-1767>),\nDaniel Hermosilla [aut, cre]",
  "Maintainer": "Daniel Hermosilla <daniel.hermosilla.r@ug.uchile.cl>",
  "MD5sum": "1dabcda393b2ae390cd535ab9f527964",
  "_user": "danielhermosilla",
  "_type": "src",
  "_file": "fastei_1.1.0.tar.gz",
  "_fileid": "af2747c30a06585b4baaf288462f5d173cb860031006ebb9a18ccab3effab557",
  "_filesize": 1856525,
  "_sha256": "af2747c30a06585b4baaf288462f5d173cb860031006ebb9a18ccab3effab557",
  "_created": "2026-05-17T09:00:22.000Z",
  "_published": "2026-06-02T17:08:12.826Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79128154112,
      "time": 143,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7041052069"
    },
    {
      "job": 79128154026,
      "time": 131,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7041050879"
    },
    {
      "job": 79128154301,
      "time": 146,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7041052362"
    },
    {
      "job": 79128154756,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7041052223"
    },
    {
      "job": 79128154450,
      "time": 198,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7041052375"
    },
    {
      "job": 79128154800,
      "time": 275,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7041064238"
    },
    {
      "job": 79128154469,
      "time": 152,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7041050030"
    },
    {
      "job": 79128153790,
      "time": 235,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7041059522"
    },
    {
      "job": 79128153257,
      "time": 209,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7041035374"
    },
    {
      "job": 79128153433,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7364655501"
    },
    {
      "job": 79128154161,
      "time": 137,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7041051395"
    },
    {
      "job": 79128154536,
      "time": 135,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7041051204"
    },
    {
      "job": 79128154082,
      "time": 123,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7041049893"
    }
  ],
  "_buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/danielhermosilla/ecological-inference-elections",
  "_commit": {
    "id": "90ae0778e2515980c595d0eecf548003e45dc492",
    "author": "Daniel Hermosilla <daniel.hermosilla.r@ug.uchile.cl>",
    "committer": "Daniel Hermosilla <daniel.hermosilla.r@ug.uchile.cl>",
    "message": "fix bugs\n",
    "time": 1768613898
  },
  "_maintainer": {
    "name": "Daniel Hermosilla",
    "email": "daniel.hermosilla.r@ug.uchile.cl",
    "login": "danielhermosilla",
    "description": "Estudiante de Ingeniería en la Universidad de Chile \n",
    "uuid": 123832478
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "reshape2",
      "role": "Suggests"
    },
    {
      "package": "viridis",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "qpdf",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "danielhermosilla",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-20",
      "n": 27
    },
    {
      "week": "2025-21",
      "n": 13
    },
    {
      "week": "2025-22",
      "n": 1
    },
    {
      "week": "2025-23",
      "n": 3
    },
    {
      "week": "2025-24",
      "n": 3
    },
    {
      "week": "2025-29",
      "n": 1
    },
    {
      "week": "2025-30",
      "n": 8
    },
    {
      "week": "2025-31",
      "n": 23
    },
    {
      "week": "2025-32",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 1
    },
    {
      "week": "2025-35",
      "n": 5
    },
    {
      "week": "2025-37",
      "n": 3
    },
    {
      "week": "2025-38",
      "n": 5
    },
    {
      "week": "2025-39",
      "n": 2
    },
    {
      "week": "2025-40",
      "n": 1
    },
    {
      "week": "2025-41",
      "n": 2
    },
    {
      "week": "2025-42",
      "n": 6
    },
    {
      "week": "2025-43",
      "n": 1
    },
    {
      "week": "2025-46",
      "n": 1
    },
    {
      "week": "2025-47",
      "n": 1
    },
    {
      "week": "2025-51",
      "n": 2
    },
    {
      "week": "2026-02",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 14
    }
  ],
  "_tags": [],
  "_topics": [
    "ecological-inference",
    "elections",
    "inference",
    "mcmc-methods",
    "openblas",
    "cpp"
  ],
  "_stars": 7,
  "_contributors": [
    {
      "user": "danielhermosilla",
      "count": 437,
      "uuid": 123832478
    },
    {
      "user": "pabloubilla",
      "count": 23,
      "uuid": 48734361
    }
  ],
  "_userbio": {
    "uuid": 123832478,
    "type": "user",
    "name": "Daniel Hermosilla",
    "description": "Estudiante de Ingeniería en la Universidad de Chile \r\n"
  },
  "_downloads": {
    "count": 311,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fastei"
  },
  "_devurl": "https://github.com/danielhermosilla/ecological-inference-elections",
  "_searchresults": 13,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fastei.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/danielhermosilla/ecological-inference-elections",
  "_realowner": "danielhermosilla",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.0.4",
      "date": "2025-05-16"
    },
    {
      "version": "0.0.0.7",
      "date": "2025-05-20"
    },
    {
      "version": "0.0.0.9",
      "date": "2025-07-19"
    },
    {
      "version": "0.0.0.10",
      "date": "2025-09-15"
    },
    {
      "version": "0.0.0.11",
      "date": "2025-11-22"
    },
    {
      "version": "0.0.0.12",
      "date": "2026-01-10"
    },
    {
      "version": "0.0.16",
      "date": "2026-05-08"
    }
  ],
  "_exports": [
    "bootstrap",
    "eim",
    "get_agg_opt",
    "get_agg_proxy",
    "get_eim_chile",
    "PCA",
    "run_em",
    "save_eim",
    "simulate_election",
    "waldtest"
  ],
  "_datasets": [
    {
      "name": "chile_election_2021",
      "title": "Chilean 2021 First Round Presidential Election",
      "object": "chile_election_2021",
      "class": [
        "data.frame"
      ],
      "fields": [
        "REGION",
        "ELECTORAL.DISTRICT",
        "BALLOT.BOX",
        "C1",
        "C2",
        "C3",
        "C4",
        "C5",
        "C6",
        "C7",
        "BLANK.VOTES",
        "NULL.VOTES",
        "X18.19",
        "X20.29",
        "X30.39",
        "X40.49",
        "X50.59",
        "X60.69",
        "X70.79",
        "X80.",
        "MISMATCH",
        "M",
        "F"
      ],
      "rows": 46606,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "fastei-package",
      "title": "fastei: Methods for \"A Fast Ecological Inference Algorithm for the R\\timesC case\"",
      "concept": [
        "package"
      ],
      "topics": [
        "fastei-package",
        "fastei"
      ]
    },
    {
      "page": "bootstrap",
      "title": "Runs a Bootstrap to Estimate the *Standard Deviation* of Predicted Probabilities",
      "topics": [
        "bootstrap",
        "bootstrap()"
      ]
    },
    {
      "page": "chile_election_2021",
      "title": "Chilean 2021 First Round Presidential Election",
      "topics": [
        "chile_election_2021"
      ]
    },
    {
      "page": "eim",
      "title": "S3 Object for the Expectation-Maximization Algorithm",
      "topics": [
        "eim",
        "eim()"
      ]
    },
    {
      "page": "get_agg_opt",
      "title": "Runs the EM algorithm *over all possible group aggregating*, returning the one with higher likelihood while constraining the standard deviation of the probabilities.",
      "topics": [
        "get_agg_opt"
      ]
    },
    {
      "page": "get_agg_proxy",
      "title": "Runs the EM algorithm aggregating adjacent groups, maximizing the variability of macro-group allocation in ballot boxes.",
      "topics": [
        "get_agg_proxy"
      ]
    },
    {
      "page": "get_eim_chile",
      "title": "Extracts voting and demographic data matrices for a given electoral district in Chile.",
      "topics": [
        "get_eim_chile",
        "get_eim_chile()"
      ]
    },
    {
      "page": "PCA",
      "title": "Reduce Parametric Covariates with PCA",
      "topics": [
        "PCA",
        "PCA()"
      ]
    },
    {
      "page": "plot.eim",
      "title": "Plot estimated probabilities",
      "topics": [
        "plot.eim"
      ]
    },
    {
      "page": "run_em",
      "title": "Compute the Expected-Maximization Algorithm",
      "topics": [
        "run_em",
        "run_em()"
      ]
    },
    {
      "page": "save_eim",
      "title": "Save an 'eim' object to a file",
      "topics": [
        "save_eim",
        "save_eim()"
      ]
    },
    {
      "page": "simulate_election",
      "title": "Simulate an Election",
      "topics": [
        "simulate_election"
      ]
    },
    {
      "page": "waldtest",
      "title": "Performs a matrix-wise Wald test for two eim objects",
      "topics": [
        "waldtest"
      ]
    }
  ],
  "_readme": "https://github.com/danielhermosilla/ecological-inference-elections/raw/HEAD/README.md",
  "_rundeps": [
    "jsonlite",
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "demonstration.Rmd",
      "filename": "demonstration.html",
      "title": "Demonstration of the package usage",
      "author": "Charles Thraves, Pablo Ubilla, Daniel Hermosilla",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Estimate Voting Probabilities",
        "Standard deviation estimates",
        "Reduce Estimation Error using Group Aggregation",
        "Test difference between estimates",
        "Simulating Election Results"
      ],
      "created": "2025-03-30 15:06:58",
      "modified": "2025-05-20 00:34:19",
      "commits": 19
    },
    {
      "source": "covariates.Rmd",
      "filename": "covariates.html",
      "title": "Using the covariate approach",
      "author": "Charles Thraves, Pablo Ubilla, Daniel Hermosilla",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulating a parametric election",
        "Running the model",
        "Reducing dimensionality with PCA"
      ],
      "created": "2026-01-17 01:20:27",
      "modified": "2026-01-17 01:20:27",
      "commits": 1
    }
  ],
  "_score": 6.320769228338687,
  "_indexed": true,
  "_nocasepkg": "fastei",
  "_universes": [
    "danielhermosilla"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-05-17T09:02:45.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "4ed99b74cb058cbf5b7e3824ba652e91deafebc142d7707802e9dbe712a45e70",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-05-17T09:02:32.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "1ff184eba6df35c28364433cf41329439e78e5e136852fdbffbc890eac4fa2e4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-05-17T09:02:49.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "954d4f265fe84a17389add4f4e383eaf88fa5060d478f65a325480b6f2a9b9c8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-05-17T09:02:44.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "e5d316920e47b02e2b8a871f804bc3c548b594e34d0ccbadd2b354cfb580e808",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-05-17T09:02:47.000Z",
      "arch": "aarch64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "73f519446e431e6a87358c542622522d410cb3e519e3eccff59f9eb5bafce2cd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-05-17T09:04:14.000Z",
      "arch": "x86_64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "d8644772036a6fb5939159b7311d9ca310368275677d4908ac0cf85cb1a1a78d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-05-17T09:02:31.000Z",
      "arch": "aarch64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "0d41ae313fc27bccf4c4c35dc889e7611e71468264abe539e1e98464c390b25e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-05-17T09:03:32.000Z",
      "arch": "x86_64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "71fb072bb41385d59575aaecff6ae6a15e239777e8bf6abebbb87ef54cf39652",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-17T09:01:51.000Z",
      "arch": "x86_64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "a22af4e4db0e710c76d289321882bc96ea8b53b3a7f858366817ecb68964cb03",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-17T09:01:48.000Z",
      "arch": "x86_64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "ad1ef7dbc40d6e8ba9881ceddf346050d931ddff3fb7a637647bde027162d4cc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-17T09:01:51.000Z",
      "arch": "x86_64",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "7d8a9b5cc9ad99a5b3eaaafb3b394860df5a050d16b76799dbc0fb4eaf458c4e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.0",
      "date": "2026-06-02T17:07:45.000Z",
      "arch": "emscripten",
      "commit": "90ae0778e2515980c595d0eecf548003e45dc492",
      "fileid": "ac71a17e32f1a1b950f3ad7bef7cde75ab678c48c10e943f1479b900e1509c98",
      "status": "success",
      "buildurl": "https://github.com/r-universe/danielhermosilla/actions/runs/25986459418"
    }
  ]
}