Reproducible models

Tutorials for reproducing models

Each tutorial in this series is a one-command R pipeline that regenerates the tables and figures of one published spatial method, with verification checks that compare the re-run numbers against the paper. Every page follows the same four parts: method overview and reproduction scope; setup, structure and data contract; the pipeline, its results and validation; and adaptation to your own data. Code and data ship as a zip on each page, and six of the methods also run in the browser as online calculators.

Reproducing the OPGD Model
1 · OPGD

Optimal Parameters-based Geographical Detector

The geographical detector of spatial stratified heterogeneity, with the optimal discretisation and spatial scale searched for every continuous variable instead of chosen by habit.

Online app
Reproducing Geocomplexity Explains Spatial Errors
2 · GC

Geocomplexity

A local measure of how far a variable's neighbourhood departs from smooth spatial dependence, predicting where spatial models err and repairing part of those errors.

Online app
Reproducing the LISP Model
3 · LISP

Local Indicator of Stratified Power

Measures explanatory power locally, a q-statistic inside each unit's window, and its LPI upgrade adds geocomplexity patterns as explanatory variables in their own right.

Online app
Reproducing Local Pathways of Association
4 · LPA

Local Pathways of Association

Path analysis made local: one structural equation model fitted inside a neighbourhood around every location, so each path coefficient becomes a surface, not a scalar.

Reproducing the SDA Model
5 · SDA

Second Dimension of Spatial Association

Builds variables from the environment around each sample rather than only at it — quantiles of each surface within several searching ranges — and selects among them.

Reproducing the SOH Model
6 · SOH

Second-dimension Outlier-driven Heterogeneity

Turns local anomalies at unsampled locations into multi-scale spatial outlier patterns and measures how much heterogeneity they explain beyond the covariates themselves.

Reproducing the DSI Model
7 · DSI

Degree of Spatial Interpretability

Measures how much of the data's spatial structure a prediction model actually explains rather than passes into its residuals — a question accuracy metrics cannot answer.

Online app
Reproducing the STOR Model
8 · STOR

Spatial Trade-Off Relation

Measures infrastructure quantity and quality as two entropy-weighted indices, reads their relation as a utility function, and cuts it into stages of diminishing marginal utility.

Reproducing the Spatial Delta Model for Accessibility
9 · SDM

Spatial Delta Model for Accessibility

Separates how much greenspace is there (access) from how easily it can be reached and used (accessibility), reading the gap between them as a diagnosis.

Reproducing Geographically Optimal Similarity
10 · GOS

Geographically Optimal Similarity

Spatial prediction on the geographical similarity principle: borrows values only from the observations whose geographical configuration most resembles the unknown location, discarding the rest.

Online app
Reproducing the SRK Model
11 · SRK

Singularity Regression Kriging

Measures how a covariate's local intensity scales with neighbourhood size, feeds that singularity index to a random forest, and kriges what the forest leaves behind.

Reproducing the Generalized Covariate Field
12 · GCF

Generalized Covariate Field

Expands the data rather than the model: every covariate becomes spatial-pattern and neighbourhood-distribution features, a stable subset is selected, and any learner predicts from them.

Online app