Distance Based Spatial Weights Matrix, condition on time

Creates either an inverse distance or distance-based SWM, which also excludes neighbors by date.
470 Downloads
Updated 21 Dec 2012

View License

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 (2024). 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 .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0