Code covered by the BSD License  

Highlights from
Inverse Distance Spatial Weights Matrix

3.0

3.0 | 1 rating Rate this file 14 Downloads (last 30 days) File Size: 3.09 KB File ID: #27526

Inverse Distance Spatial Weights Matrix

by Patrick Walsh

 

07 May 2010 (Updated 02 Jan 2013)

Creates an inverse-distance SWM, from X and Y coords.Can be used on very large datasets

| Watch this File

File Information
Description

Uses x,y coordinates to produce distance-based spatial weight matrices useful for spatial econometric regressions. The user is asked to input x and y coordinates, as well as a lower and upper bound threshold for the neighborhood.
The code is adapted from a previous version by Shawn Bucholtz of the USDA. A correction is made to set the (i,i) th elements (the diagonals) equal to zero.
Unlike other similar programs, this one can be used on very large datasets.

Acknowledgements

This file inspired Inverse And Determinant Of Square Matrix.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
spatial, spatial econometrics, spatial error, spatial lag, spatial weights matrix
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
03 Apr 2012 Bumseok  
Updates
08 May 2012

Some minor updates, should make code run better.

02 Jan 2013

Updated to include other required programs.

Contact us