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

## Documentation for package ‘fastei’ version 0.0.16

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package README

## Help Pages

fastei-package | fastei: Methods for "A Fast Ecological Inference Algorithm for the R\timesC case"
bootstrap | Runs a Bootstrap to Estimate the *Standard Deviation* of Predicted Probabilities
bootstrap() | Runs a Bootstrap to Estimate the *Standard Deviation* of Predicted Probabilities
chile_election_2021 | Chilean 2021 First Round Presidential Election
eim | S3 Object for the Expectation-Maximization Algorithm
eim() | S3 Object for the Expectation-Maximization Algorithm
fastei | fastei: Methods for "A Fast Ecological Inference Algorithm for the R\timesC case"
get_agg_opt | Runs the EM algorithm *over all possible group aggregating*, returning the one with higher likelihood while constraining the standard deviation of the probabilities.
get_agg_proxy | Runs the EM algorithm aggregating adjacent groups, maximizing the variability of macro-group allocation in ballot boxes.
get_eim_chile | Extracts voting and demographic data matrices for a given electoral district in Chile.
get_eim_chile() | Extracts voting and demographic data matrices for a given electoral district in Chile.
plot.eim | Plot estimated probabilities
run_em | Compute the Expected-Maximization Algorithm
run_em() | Compute the Expected-Maximization Algorithm
save_eim | Save an 'eim' object to a file
save_eim() | Save an 'eim' object to a file
simulate_election | Simulate an Election
waldtest | Performs a matrix-wise Wald test for two eim objects