All functions

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

fastei fastei-package

fastei: Methods for "A Fast Ecological Inference Algorithm for the R\(\times\)C 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.

run_em()

Compute the Expected-Maximization Algorithm

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