Package: fastei 1.1.0

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

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 Ubilla Pavez, Pablo; Hermosilla, Daniel; Thraves, Charles (2026) ''An accurate, fast, and scalable ecological inference algorithm for the R×C case'', Statistics and Computing 36, Article 195 <doi:10.1007/s11222-026-10946-1>.

Authors:Charles Thraves [aut], Pablo Ubilla [aut], Daniel Hermosilla [aut, cre]

fastei_1.1.0.tar.gz
fastei_1.1.0.zip(r-4.7-x86_64)fastei_1.1.0.zip(r-4.7-arm64)fastei_1.1.0.zip(r-4.6-x86_64)fastei_1.1.0.zip(r-4.6-arm64)fastei_1.1.0.zip(r-4.5-x86_64)
fastei_1.1.0.tgz(r-4.6-x86_64)fastei_1.1.0.tgz(r-4.6-arm64)fastei_1.1.0.tgz(r-4.5-x86_64)fastei_1.1.0.tgz(r-4.5-arm64)
fastei_1.1.0.tar.gz(r-4.7-arm64)fastei_1.1.0.tar.gz(r-4.7-x86_64)fastei_1.1.0.tar.gz(r-4.6-arm64)fastei_1.1.0.tar.gz(r-4.6-x86_64)
fastei_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
fastei/json (API)

# Install 'fastei' in R:
install.packages('fastei', repos = c('https://danielhermosilla.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/danielhermosilla/ecological-inference-elections/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

ecological-inferenceelectionsinferencemcmc-methodsopenblascpp

6.22 score 7 stars 14 scripts 658 downloads 10 exports 2 dependencies

Last updated from:e486c398bf. Checks:13 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE149
linux-devel-x86_64NOTE139
source / vignettesOK245
linux-release-arm64NOTE141
linux-release-x86_64NOTE136
macos-release-arm64NOTE167
macos-release-x86_64NOTE304
macos-oldrel-arm64NOTE194
macos-oldrel-x86_64NOTE478
windows-devel-arm64NOTE365
windows-devel-x86_64NOTE169
windows-release-arm64NOTE349
windows-release-x86_64NOTE128
windows-oldrel-x86_64NOTE102
wasm-releaseOK112

Exports:bootstrapeimget_agg_optget_agg_proxyget_eim_chilePCArun_emsave_eimsimulate_electionwaldtest

Dependencies:jsonliteRcpp

Using the covariate approach
Simulating a parametric election | Running the model | Reducing dimensionality with PCA

Last update: 2026-01-17
Started: 2026-01-17

Demonstration of the package usage
Estimate Voting Probabilities | Standard deviation estimates | Reduce Estimation Error using Group Aggregation | Test difference between estimates | Simulating Election Results

Last update: 2025-05-20
Started: 2025-03-30