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>.

Provides a drop-in replacement for rasterize() from the 'raster'
   package that takes polygon vector or data frame objects, and is much faster. 
   There is support for the main options provided by the rasterize() function, 
   including setting the field used and background value, and options for 
   aggregating multi-layer rasters. Uses the scan line algorithm attributed to
   Wylie et al. (1967) <doi:10.1145/1465611.1465619>.

Processing of large-in-memory/large-on disk rasters and spatial
	vectors using 'GRASS' <https://grass.osgeo.org/>. Most functions in the
	'terra' package are	recreated. Processing of medium-sized and smaller
	spatial objects will nearly always be faster using 'terra' or 'sf', but
	for large-in-memory/large-on-disk objects, 'fasterRaster' may be faster.
	To use most of the functions, you must have the stand-alone version (not
	the 'OSGeoW4' installer version) of 'GRASS' 8.0 or higher.

Implementation of the fast univariate inference approach (Cui et al. (2022) <doi:10.1080/10618600.2021.1950006>, Loewinger et al. (2024) <doi:10.7554/eLife.95802.2>, Xin et al. (2025)) for fitting functional mixed models. User guides and Python package information can be found at <https://github.com/gloewing/photometry_FLMM>.