Modules
PySAL-style spatial analysis for Elixir, backed by a Rust core.
Map classification, mirroring mapclassify 2.11.0.
Spatial dynamics, mirroring giddy 2.3.9.
Result of Spatex.Dynamics.kullback/2 (giddy.markov.kullback), Kullback's information test of
Markov homogeneity across strata.
Result of Spatex.Dynamics.lisa_markov/3 (giddy.markov.LISA_Markov).
Result of Spatex.Dynamics.markov/2 (giddy.markov.Markov), also returned by
Spatex.Dynamics.full_rank_markov/2 and geo_rank_markov/2.
Result of Spatex.Dynamics.spatial_markov/3 (giddy.markov.Spatial_Markov).
Result of Spatex.Dynamics.spatial_tau/4 (giddy.rank.SpatialTau).
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).
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)).
Result of Spatex.Dynamics.tau_local_neighbor/4 (giddy.rank.Tau_Local_Neighbor).
Result of Spatex.Dynamics.tau_local_neighborhood/4 (giddy.rank.Tau_Local_Neighborhood).
Result of Spatex.Dynamics.tau_regional/4 (giddy.rank.Tau_Regional).
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).
Exploratory spatial data analysis, mirroring esda 2.10.0.
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.
Result of Spatex.ESDA.g_local/3: the local Getis-Ord statistics G_i and G*_i
(esda.G_Local).
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).
Result of Spatex.ESDA.geary_local/3: local Geary (esda.Geary_Local, Anselin 1995).
Result of Spatex.ESDA.geary_local_mv/3: multivariate local Geary
(esda.Geary_Local_MV, Anselin 2019).
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.
Result of Spatex.ESDA.join_counts_local/3: univariate local join counts
(esda.Join_Counts_Local, Anselin and Li 2019).
Result of Spatex.ESDA.losh/3: local spatial heteroscedasticity (esda.LOSH, Ord and Getis
2012).
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).
Result of Spatex.ESDA.moran_bv/4: bivariate Moran's I (esda.Moran_BV).
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).
Result of Spatex.ESDA.moran_rate/4: Moran's I of event rates (esda.Moran_Rate).
Per-site results as Explorer.DataFrames.
Geographically weighted regression (Gaussian, Poisson and binomial families), bandwidth
selection and multiscale GWR (MGWR), after mgwr (PySAL).
Result of Spatex.GWR.select_bandwidth/4 (mgwr.sel_bw.Sel_BW).
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.
Result of Spatex.GWR.mgwr/4, with the attribute names of mgwr.gwr.MGWRResults (mgwr 2.2.1)
in snake_case.
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.
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.
Result of Spatex.GWR.spatial_variability/4 (GWRResults.spatial_variability in mgwr).
Adapter between GeoFrame and Spatex.
Spatial weights as an immutable graph, mirroring libpysal.graph.Graph.
Reads and writes spatial weights in the GeoDa/PySAL GAL and GWT text formats.
Inequality measures, mirroring the inequality package (1.2.0).
Result of Spatex.Inequality.atkinson/2 (inequality.atkinson.Atkinson).
Result of Spatex.Inequality.polarization/3 (inequality.polarization.S).
Result of Spatex.Inequality.schutz/1 (inequality.schutz.Schutz).
Result of Spatex.Inequality.spatial_gini/3 (inequality.gini.Gini_Spatial).
Result of Spatex.Inequality.theil_d/3 (inequality.TheilD / TheilDSim).
The input contract shared by every Spatex function.
Point pattern analysis, after pointpats 2.6.0: centrography, Ripley's distance functions
with seeded simulation envelopes, random point processes and quadrat statistics.
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).
Result of Spatex.PointPats.quadrat_test/2 (pointpats QStatistic).
Regionalization after spopt 0.8.0: group areas into contiguous regions.
Result of Spatex.Region.azp/3.
Result of Spatex.Region.max_p/3.
Result of Spatex.Region.random_region/2: one random partition of the areas.
Result of Spatex.Region.sa3/3.
Result of Spatex.Region.skater/3.
Result of Spatex.Region.spenc/3.
Result of Spatex.Region.ward_spatial/3.
Spatial regression, after spreg (PySAL).
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.
Result of Spatex.Regression.gm_combo_regimes/5 (spreg.GM_Combo_Regimes, and the _Het_ /
_Hom_ classes with estimator: :het / :hom).
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.
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).
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.
Result of Spatex.Regression.gm_lag_regimes/5 (spreg.GM_Lag_Regimes).
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.
Result of Spatex.Regression.ml_error_regimes/5 (spreg.ML_Error_Regimes).
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.
Result of Spatex.Regression.ml_lag_regimes/5 (spreg.ML_Lag_Regimes).
Result of Spatex.Regression.ols/3: coefficients, inference and diagnostics, with the
attribute names of spreg.OLS (spreg 1.9.1) in snake_case.
Result of Spatex.Regression.ols_regimes/4 (spreg.OLS_Regimes).
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.
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.
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.
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.
Result of Spatex.Regression.sur/3 (spreg.SUR): seemingly unrelated regressions by
feasible GLS.
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.
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.
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.
Result of Spatex.Regression.tsls/5: two-stage least squares, with the attribute names of
spreg.TSLS (spreg 1.9.1) in snake_case.
Result of Spatex.Regression.tsls_regimes/6 (spreg.TSLS_Regimes).
Result of Spatex.Regression.three_sls/5 (spreg.ThreeSLS): three-stage least squares for a
system of equations with endogenous regressors.