Code for: Spatial Analysis Made Easy with Linear Regression and Kernels - Milton, Philip (Mendeley, 2019)