Distance Based Spatial Weights Matrix, condition on time

Creates either an inverse distance or distance-based SWM, which also excludes neighbors by date.

You are now following this Submission

uses x,y coordinates to produce distance-based spatial weight matrices useful for spatial econometric regressions. Also conditions on time, so is particularly useful for hedonic regression. So, for
instance, if you are using a dataset of sales with a time horizon of a few years, you could say that homes sold over a
year before are not considered neighbors. Helps mimic the "comparable sales" approach to appraisal.
The user is asked to input x and y coordinates, as well as a lower and upper bound threshold for the neighborhood and the time window.

Cite As

Patrick Walsh (2026). Distance Based Spatial Weights Matrix, condition on time (https://www.mathworks.com/matlabcentral/fileexchange/39525-distance-based-spatial-weights-matrix-condition-on-time), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0