Software

calibratedMRP: an R package with tools to generate small-area estimates from survey and administrative data using multilevel regression and poststratification (MRP). It provides a user-friendly implementation of a calibration procedure that ensures estimates incorporate ground-truth population margins. The package features user-friendly functions for performing the calibration and poststratification steps, and is designed to work with models estimated using the brms package. This package accompanies “Improving Small-Area Estimates of Public Opinion by Calibrating to Known Population Quantities”.

blocs: an R package that enables researchers to combine data voting blocs’ size, turnout, and vote choice to estimate each bloc’s vote contributions to election outcomes. The package also includes functions for uncertainty estimation and plotting. The package accompanies “Measuring the Contribution of Voting Blocs to Election Outcomes”.