fastei
Methods for ''A Fast Alternative for the R x C Ecological Inference Case''
Description
Estimates the probability matrix for the R×C Ecological Inference problem using the Expectation-Maximization Algorithm with four approximation methods for the E-Step, and an exact method as well. It also provides a bootstrap function to estimate the standard deviation of the estimated probabilities. In addition, it has functions that aggregate rows optimally to have more reliable estimates in cases of having few data points. For comparing the probability estimates of two groups, a Wald test routine is implemented. The library has data from the first round of the Chilean Presidential Election 2021 and can also generate synthetic election data. Methods described in Thraves, Charles; Ubilla, Pablo; Hermosilla, Daniel (2024) ''A Fast Ecological Inference Algorithm for the R×C case'' <doi:10.2139/ssrn.4832834>.
Downloads
422
Last 30 days
9581st
1.1K
Last 90 days
4K
Last year
Trend: -10.6% (30d vs prior 30d)
24
Last 30 days
134
Last 90 days
493
Last year
Trend: -59.3% (30d vs prior 30d)
0
Last 7 days
12
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 3 ERROR · 0 FAILURE Mar 10, 2026
whether package can be installed
Installation failed. See ‘/Volumes/Builds/packages/big-sur-arm64/results/4.4/fastei.Rcheck/00install.out’ for details.
whether package can be installed
Installation failed. See ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.4/fastei.Rcheck/00install.out’ for details.
whether package can be installed
Installation failed. See 'd:/Rcompile/CRANpkg/local/4.4/fastei.Rcheck/00install.out' for details.
Code
Structure
Lines of code
18,058
Files
77
Compiled share
69.7%
Has compiled src
Yes
Language breakdown
API
Exported functions
9
Internal functions
30
Recent export changes
Testing & CI
Has tests
Yes
Test-to-code ratio
0.22
testthat edition
3
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
100%
\dontrun example ratio
18.2%
Roxygen coverage
100%
Has pkgdown
No
NEWS present
No
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
–
Unsafe pattern score
0
Dep constraint coverage
0%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
3.5
System requirements
–
C++ standard
–
License
MIT + file LICENSE
License flags
SPDX valid, OSI approved
History
Versions
8
First release
2025-05-16
Latest release
2026-05-20
Avg cadence
58 days
Cold removal rate
100%
Dep drift
0
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.