Skip to content

fastei

Methods for ''A Fast Alternative for the R x C Ecological Inference Case''

v0.0.19 · May 20, 2026 · MIT + file LICENSE

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

CRAN

422

Last 30 days

9581st

1.1K

Last 90 days

4K

Last year

Trend: -10.6% (30d vs prior 30d)

r2u CRAN

24

Last 30 days

134

Last 90 days

493

Last year

Trend: -59.3% (30d vs prior 30d)

autoCRAN

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

13 OK
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
ERROR r-oldrel-macos-arm64

whether package can be installed

Installation failed.
See ‘/Volumes/Builds/packages/big-sur-arm64/results/4.4/fastei.Rcheck/00install.out’ for details.
ERROR r-oldrel-macos-x86_64

whether package can be installed

Installation failed.
See ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.4/fastei.Rcheck/00install.out’ for details.
ERROR r-oldrel-windows-x86_64

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

R 3,225 (17.9%)C/C++/src 12,589 (69.7%)Tests 711 (3.9%)Docs 1,204 (6.7%)Vignettes 329 (1.8%)

API

Exported functions

9

Internal functions

30

Recent export changes

v0.0.0.7+1 waldtest  −1 welchtest
v0.0.0.4+9 bootstrap, eim, get_agg_opt +6 more

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

v0.0.0.4: 12,887 LOCv0.0.0.7: 13,049 LOCv0.0.0.9: 13,090 LOCv0.0.0.10: 14,079 LOCv0.0.0.11: 14,630 LOCv0.0.0.12: 15,628 LOCv0.0.16: 18,029 LOCv0.0.19: 18,058 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies Rcpp jsonlite fastei

Version History

9 tracked
updated 0.0.19 ← 0.0.16 diff May 20, 2026
updated 0.0.16 ← 0.0.0.12 diff May 8, 2026
new 0.0.0.12 Mar 10, 2026
updated 0.0.0.12 ← 0.0.0.11 diff Jan 9, 2026
updated 0.0.0.11 ← 0.0.0.10 diff Nov 21, 2025
updated 0.0.0.10 ← 0.0.0.9 diff Sep 15, 2025
updated 0.0.0.9 ← 0.0.0.7 diff Jul 18, 2025
updated 0.0.0.7 ← 0.0.0.4 diff May 19, 2025
new 0.0.0.4 May 15, 2025