# Spatex v0.2.1 - Table of Contents > PySAL-style spatial analysis for Elixir, backed by a Rust core. ## Pages - [Spatex](readme.md) - [Changelog](changelog.md) - Guides - [Benchmarks](benchmarks.md) - [ESDA guide](guide_esda.md) - [Architecture](architecture.md) - [PySAL parity](parity.md) - [Research](research.md) - [Roadmap](roadmap.md) - Notebooks - [Tour](tour.md) - [GeoFrame](geoframe.md) - [Use case: NC SIDS](nc_sids_case.md) - [Use case: US income](us_income_case.md) - [Use case: Baltimore housing](baltimore_case.md) - [Use case: Georgia GWR](georgia_case.md) - [Use case: John Snow's cholera map](snow_case.md) - [Use case: Mexico maps and regions](mexico_case.md) - [Caso de uso: SIDS (es)](caso_sids_carolina_del_norte.md) - [Caso de uso: renta EE. UU. (es)](caso_ingresos_eeuu.md) - [Caso de uso: vivienda Baltimore (es)](caso_vivienda_baltimore.md) - [Caso de uso: educación Georgia (es)](caso_educacion_georgia.md) - [Caso de uso: cólera de Snow (es)](caso_colera_snow.md) - [Caso de uso: regiones México (es)](caso_regiones_mexico.md) - [PySAL comparison](pysal_comparison.md) - Legal - [License](license.md) - [Notice](notice.md) ## Modules - [Spatex](Spatex.md): PySAL-style spatial analysis for Elixir, backed by a Rust core. - [Spatex.Classify](Spatex.Classify.md): Map classification, mirroring `mapclassify` 2.11.0. - [Spatex.Dynamics](Spatex.Dynamics.md): Spatial dynamics, mirroring `giddy` 2.3.9. - [Spatex.Dynamics.Kullback](Spatex.Dynamics.Kullback.md): Result of `Spatex.Dynamics.kullback/2` (`giddy.markov.kullback`), Kullback's information test of Markov homogeneity across strata. - [Spatex.Dynamics.LisaMarkov](Spatex.Dynamics.LisaMarkov.md): Result of `Spatex.Dynamics.lisa_markov/3` (`giddy.markov.LISA_Markov`). - [Spatex.Dynamics.Markov](Spatex.Dynamics.Markov.md): Result of `Spatex.Dynamics.markov/2` (`giddy.markov.Markov`), also returned by `Spatex.Dynamics.full_rank_markov/2` and `geo_rank_markov/2`. - [Spatex.Dynamics.SpatialMarkov](Spatex.Dynamics.SpatialMarkov.md): Result of `Spatex.Dynamics.spatial_markov/3` (`giddy.markov.Spatial_Markov`). - [Spatex.Dynamics.SpatialTau](Spatex.Dynamics.SpatialTau.md): Result of `Spatex.Dynamics.spatial_tau/4` (`giddy.rank.SpatialTau`). - [Spatex.Dynamics.Tau](Spatex.Dynamics.Tau.md): Result of `Spatex.Dynamics.kendall_tau/2` (`giddy.rank.Tau`): Kendall's tau-b with its asymptotic two-sided p-value `p` (`tau_p` in giddy) and the pair counts it is built from (`extra_x`: pairs tied in `y` only, `extra_y`: pairs tied in `x` only). - [Spatex.Dynamics.TauLocal](Spatex.Dynamics.TauLocal.md): Result of `Spatex.Dynamics.tau_local/2` (`giddy.rank.Tau_Local`): `tau` is the share of concordant minus discordant ordered pairs, `sum S / (n (n - 1))`, and `tau_local` the row means `sum_j S_ij / (n - 1)` of the concordance `S_ij = sign((x_i - x_j)(y_i - y_j))`. - [Spatex.Dynamics.TauLocalNeighbor](Spatex.Dynamics.TauLocalNeighbor.md): Result of `Spatex.Dynamics.tau_local_neighbor/4` (`giddy.rank.Tau_Local_Neighbor`). - [Spatex.Dynamics.TauLocalNeighborhood](Spatex.Dynamics.TauLocalNeighborhood.md): Result of `Spatex.Dynamics.tau_local_neighborhood/4` (`giddy.rank.Tau_Local_Neighborhood`). - [Spatex.Dynamics.TauRegional](Spatex.Dynamics.TauRegional.md): Result of `Spatex.Dynamics.tau_regional/4` (`giddy.rank.Tau_Regional`). - [Spatex.Dynamics.Theta](Spatex.Dynamics.Theta.md): Result of `Spatex.Dynamics.theta/3` (`giddy.rank.Theta`): the share of rank changes that move in the same direction within regimes, per interval (`t - 1` values). - [Spatex.ESDA](Spatex.ESDA.md): Exploratory spatial data analysis, mirroring `esda` 2.10.0. - [Spatex.ESDA.G](Spatex.ESDA.G.md): Result of `Spatex.ESDA.getis_ord_g/3`: the Getis-Ord general G with analytic and permutation inference. Field names are PySAL's `esda.G` attributes in snake_case (`seG_sim` is `se_g_sim`); `den_sum` is `(sum y)^2 - sum y^2`. - [Spatex.ESDA.GLocal](Spatex.ESDA.GLocal.md): Result of `Spatex.ESDA.g_local/3`: the local Getis-Ord statistics `G_i` and `G*_i` (`esda.G_Local`). - [Spatex.ESDA.Geary](Spatex.ESDA.Geary.md): Result of `Spatex.ESDA.geary/3`: global Geary's C with analytic and permutation inference. Field names are PySAL's `esda.Geary` attributes in snake_case (`seC_norm` is `se_c_norm`). - [Spatex.ESDA.GearyLocal](Spatex.ESDA.GearyLocal.md): Result of `Spatex.ESDA.geary_local/3`: local Geary (`esda.Geary_Local`, Anselin 1995). - [Spatex.ESDA.GearyLocalMV](Spatex.ESDA.GearyLocalMV.md): Result of `Spatex.ESDA.geary_local_mv/3`: multivariate local Geary (`esda.Geary_Local_MV`, Anselin 2019). - [Spatex.ESDA.JoinCounts](Spatex.ESDA.JoinCounts.md): Result of `Spatex.ESDA.join_counts/3`: binary join counts with a Yates-corrected chi-square test and permutation inference. Field names follow PySAL's `esda.Join_Counts`. - [Spatex.ESDA.JoinCountsLocal](Spatex.ESDA.JoinCountsLocal.md): Result of `Spatex.ESDA.join_counts_local/3`: univariate local join counts (`esda.Join_Counts_Local`, Anselin and Li 2019). - [Spatex.ESDA.Losh](Spatex.ESDA.Losh.md): Result of `Spatex.ESDA.losh/3`: local spatial heteroscedasticity (`esda.LOSH`, Ord and Getis 2012). - [Spatex.ESDA.Moran](Spatex.ESDA.Moran.md): Result of `Spatex.ESDA.moran/3` and `Spatex.ESDA.moran_rate/4`: global Moran's I with analytic and permutation inference. Field names are PySAL's `esda.Moran` attributes in snake_case (`seI_norm` is `se_i_norm`). - [Spatex.ESDA.MoranBV](Spatex.ESDA.MoranBV.md): Result of `Spatex.ESDA.moran_bv/4`: bivariate Moran's I (`esda.Moran_BV`). - [Spatex.ESDA.MoranLocal](Spatex.ESDA.MoranLocal.md): Result of `Spatex.ESDA.moran_local/3` and `Spatex.ESDA.moran_local_bv/4`: local Moran's I (LISA, `esda.Moran_Local` / `esda.Moran_Local_BV`). - [Spatex.ESDA.MoranRate](Spatex.ESDA.MoranRate.md): Result of `Spatex.ESDA.moran_rate/4`: Moran's I of event rates (`esda.Moran_Rate`). - [Spatex.Explorer](Spatex.Explorer.md): Per-site results as `Explorer.DataFrame`s. - [Spatex.GWR](Spatex.GWR.md): Geographically weighted regression (Gaussian, Poisson and binomial families), bandwidth selection and multiscale GWR (MGWR), after `mgwr` (PySAL). - [Spatex.GWR.Bandwidth](Spatex.GWR.Bandwidth.md): Result of `Spatex.GWR.select_bandwidth/4` (`mgwr.sel_bw.Sel_BW`). - [Spatex.GWR.Collinearity](Spatex.GWR.Collinearity.md): Result of `Spatex.GWR.local_collinearity/3`: local indicators of multicollinearity within the geographically weighted design matrix, after `GWRResults.local_collinearity` and `MGWRResults.local_collinearity` of mgwr 2.2.1. - [Spatex.GWR.MGWRResult](Spatex.GWR.MGWRResult.md): Result of `Spatex.GWR.mgwr/4`, with the attribute names of `mgwr.gwr.MGWRResults` (mgwr 2.2.1) in snake_case. - [Spatex.GWR.Prediction](Spatex.GWR.Prediction.md): Result of `Spatex.GWR.predict/6`: local coefficients and predictions at new locations, after `GWR.predict` and the `GWRResults` it returns in mgwr 2.2.1. - [Spatex.GWR.Result](Spatex.GWR.Result.md): Result of `Spatex.GWR.fit/4`, with the attribute names of `mgwr.gwr.GWRResults` (mgwr 2.2.1) in snake_case, for the Gaussian, Poisson and binomial families. - [Spatex.GWR.SpatialVariability](Spatex.GWR.SpatialVariability.md): Result of `Spatex.GWR.spatial_variability/4` (`GWRResults.spatial_variability` in mgwr). - [Spatex.GeoFrame](Spatex.GeoFrame.md): Adapter between [GeoFrame](https://github.com/CountlinkX-Solutions/geoframe) and Spatex. - [Spatex.Graph](Spatex.Graph.md): Spatial weights as an immutable graph, mirroring `libpysal.graph.Graph`. - [Spatex.Graph.IO](Spatex.Graph.IO.md): Reads and writes spatial weights in the GeoDa/PySAL GAL and GWT text formats. - [Spatex.Inequality](Spatex.Inequality.md): Inequality measures, mirroring the `inequality` package (1.2.0). - [Spatex.Inequality.Atkinson](Spatex.Inequality.Atkinson.md): Result of `Spatex.Inequality.atkinson/2` (`inequality.atkinson.Atkinson`). - [Spatex.Inequality.Polarization](Spatex.Inequality.Polarization.md): Result of `Spatex.Inequality.polarization/3` (`inequality.polarization.S`). - [Spatex.Inequality.Schutz](Spatex.Inequality.Schutz.md): Result of `Spatex.Inequality.schutz/1` (`inequality.schutz.Schutz`). - [Spatex.Inequality.SpatialGini](Spatex.Inequality.SpatialGini.md): Result of `Spatex.Inequality.spatial_gini/3` (`inequality.gini.Gini_Spatial`). - [Spatex.Inequality.TheilD](Spatex.Inequality.TheilD.md): Result of `Spatex.Inequality.theil_d/3` (`inequality.TheilD` / `TheilDSim`). - [Spatex.Input](Spatex.Input.md): The input contract shared by every Spatex function. - [Spatex.PointPats](Spatex.PointPats.md): Point pattern analysis, after `pointpats` 2.6.0: centrography, Ripley's distance functions with seeded simulation envelopes, random point processes and quadrat statistics. - [Spatex.PointPats.DistanceTest](Spatex.PointPats.DistanceTest.md): Result of `Spatex.PointPats.g_test/2` and its siblings: an observed distance function with a seeded Monte Carlo test against complete spatial randomness (`pointpats.distance_statistics` `*_test`). - [Spatex.PointPats.Quadrat](Spatex.PointPats.Quadrat.md): Result of `Spatex.PointPats.quadrat_test/2` (`pointpats` `QStatistic`). - [Spatex.Region](Spatex.Region.md): Regionalization after `spopt` 0.8.0: group areas into contiguous regions. - [Spatex.Region.AZP](Spatex.Region.AZP.md): Result of `Spatex.Region.azp/3`. - [Spatex.Region.MaxP](Spatex.Region.MaxP.md): Result of `Spatex.Region.max_p/3`. - [Spatex.Region.RandomRegion](Spatex.Region.RandomRegion.md): Result of `Spatex.Region.random_region/2`: one random partition of the areas. - [Spatex.Region.RandomRegions](Spatex.Region.RandomRegions.md): Result of `Spatex.Region.random_regions/2`. - [Spatex.Region.RegionKMeans](Spatex.Region.RegionKMeans.md): Result of `Spatex.Region.region_kmeans/3`. - [Spatex.Region.Sa3](Spatex.Region.Sa3.md): Result of `Spatex.Region.sa3/3`. - [Spatex.Region.Skater](Spatex.Region.Skater.md): Result of `Spatex.Region.skater/3`. - [Spatex.Region.Spenc](Spatex.Region.Spenc.md): Result of `Spatex.Region.spenc/3`. - [Spatex.Region.Ward](Spatex.Region.Ward.md): Result of `Spatex.Region.ward_spatial/3`. - [Spatex.Regression](Spatex.Regression.md): Spatial regression, after `spreg` (PySAL). - [Spatex.Regression.GMCombo](Spatex.Regression.GMCombo.md): Result of `Spatex.Regression.gm_combo/4`: the spatial lag model with spatially autocorrelated errors, `y = rho W y + X beta + u`, `u = lambda W u + e` (`GM_Combo`, `GM_Combo_Het`, `GM_Combo_Hom`; spreg 1.9.1) in snake_case. - [Spatex.Regression.GMComboRegimes](Spatex.Regression.GMComboRegimes.md): Result of `Spatex.Regression.gm_combo_regimes/5` (`spreg.GM_Combo_Regimes`, and the `_Het_` / `_Hom_` classes with `estimator: :het` / `:hom`). - [Spatex.Regression.GMError](Spatex.Regression.GMError.md): Result of `Spatex.Regression.gm_error/4`: a GMM spatial error model `y = X beta + u`, `u = lambda W u + e` for any of the three estimators (`GM_Error`, `GM_Error_Het`, `GM_Error_Hom` and their `Endog` variants with `yend` / `q`), with the attribute names of spreg 1.9.1 in snake_case. - [Spatex.Regression.GMErrorRegimes](Spatex.Regression.GMErrorRegimes.md): Result of `Spatex.Regression.gm_error_regimes/5` (`spreg.GM_Error_Regimes` and, with `:yend`, `spreg.GM_Endog_Error_Regimes`; the `_Het_` and `_Hom_` classes with `estimator: :het` / `:hom`). - [Spatex.Regression.GMLag](Spatex.Regression.GMLag.md): Result of `Spatex.Regression.gm_lag/4`: the spatial two-stage least squares model `y = rho W y + X beta + e` (`spreg.GM_Lag`, spreg 1.9.1) in snake_case. - [Spatex.Regression.GMLagRegimes](Spatex.Regression.GMLagRegimes.md): Result of `Spatex.Regression.gm_lag_regimes/5` (`spreg.GM_Lag_Regimes`). - [Spatex.Regression.MLError](Spatex.Regression.MLError.md): Result of `Spatex.Regression.ml_error/4`: the maximum-likelihood spatial error model `y = X beta + u`, `u = lambda W u + e`, with the attribute names of `spreg.ML_Error` (spreg 1.9.1) in snake_case. - [Spatex.Regression.MLErrorRegimes](Spatex.Regression.MLErrorRegimes.md): Result of `Spatex.Regression.ml_error_regimes/5` (`spreg.ML_Error_Regimes`). - [Spatex.Regression.MLLag](Spatex.Regression.MLLag.md): Result of `Spatex.Regression.ml_lag/4`: the maximum-likelihood spatial lag model `y = rho W y + X beta + e`, with the attribute names of `spreg.ML_Lag` (spreg 1.9.1) in snake_case. - [Spatex.Regression.MLLagRegimes](Spatex.Regression.MLLagRegimes.md): Result of `Spatex.Regression.ml_lag_regimes/5` (`spreg.ML_Lag_Regimes`). - [Spatex.Regression.OLS](Spatex.Regression.OLS.md): Result of `Spatex.Regression.ols/3`: coefficients, inference and diagnostics, with the attribute names of `spreg.OLS` (spreg 1.9.1) in snake_case. - [Spatex.Regression.OLSRegimes](Spatex.Regression.OLSRegimes.md): Result of `Spatex.Regression.ols_regimes/4` (`spreg.OLS_Regimes`). - [Spatex.Regression.PanelFE](Spatex.Regression.PanelFE.md): Result of `Spatex.Regression.ml_lag_fe/4` and `ml_error_fe/4` (`spreg.ML_LagFE`, `spreg.ML_ErrorFE`): a spatial panel with individual fixed effects. - [Spatex.Regression.PanelGMKKP](Spatex.Regression.PanelGMKKP.md): Result of `Spatex.Regression.gm_kkp/4` (`spreg.GM_ErrorRE`, formerly `GM_KKP`): the Kapoor-Kelejian-Prucha GM estimator of a spatial error panel with random effects, `y = X b + mu_i + u`, `u = lambda W u + e`. - [Spatex.Regression.PanelRE](Spatex.Regression.PanelRE.md): Result of `Spatex.Regression.ml_lag_re/4` (`spreg.ML_LagRE`): a spatial lag panel with random effects, `y = rho W y + X b + mu_i + e`. - [Spatex.Regression.PanelREError](Spatex.Regression.PanelREError.md): Result of `Spatex.Regression.ml_error_re/4` (`spreg.ML_ErrorRE`): a spatial error panel with random effects, `y = X b + mu_i + u`, `u = lambda W u + e`. - [Spatex.Regression.SUR](Spatex.Regression.SUR.md): Result of `Spatex.Regression.sur/3` (`spreg.SUR`): seemingly unrelated regressions by feasible GLS. - [Spatex.Regression.SURerrorGM](Spatex.Regression.SURerrorGM.md): Result of `Spatex.Regression.sur_error_gm/4` (`spreg.SURerrorGM`): seemingly unrelated regressions with a spatial error process in every equation, estimated by generalized moments and feasible GLS. - [Spatex.Regression.SURerrorML](Spatex.Regression.SURerrorML.md): Result of `Spatex.Regression.sur_error_ml/4` (`spreg.SURerrorML`): seemingly unrelated regressions with a spatial error process in every equation, estimated by maximum likelihood. - [Spatex.Regression.SURlagIV](Spatex.Regression.SURlagIV.md): Result of `Spatex.Regression.sur_lag_iv/4` (`spreg.SURlagIV`): seemingly unrelated regressions with a spatial lag of the dependent variable in every equation, estimated by three-stage least squares with the spatially lagged exogenous variables as instruments. - [Spatex.Regression.TSLS](Spatex.Regression.TSLS.md): Result of `Spatex.Regression.tsls/5`: two-stage least squares, with the attribute names of `spreg.TSLS` (spreg 1.9.1) in snake_case. - [Spatex.Regression.TSLSRegimes](Spatex.Regression.TSLSRegimes.md): Result of `Spatex.Regression.tsls_regimes/6` (`spreg.TSLS_Regimes`). - [Spatex.Regression.ThreeSLS](Spatex.Regression.ThreeSLS.md): Result of `Spatex.Regression.three_sls/5` (`spreg.ThreeSLS`): three-stage least squares for a system of equations with endogenous regressors.