Code covered by the BSD License  

Highlights from
Nearest Neighbor Spatial Weights Matrix

Be the first to rate this file! 18 Downloads (last 30 days) File Size: 2.14 KB File ID: #36601

Nearest Neighbor Spatial Weights Matrix

by

 

08 May 2012 (Updated )

uses x,y coordinates to produce one of several types of nearest-neighbor spatial weight matrix.

| Watch this File

File Information
Description

There are several other nearest neighbor SWM programs out there, but many of them require significantly more memory to run and do not work on large datasets. This file should work on large datasets (have tested on >100,000 obs). Furthermore, several options are available for the weights. The user can choose equal weights for each neighbor, or weights based on distance. This allows the NN specification more accuracy.

Required Products Symbolic Math Toolbox
MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
02 May 2013

Code made more efficient and a potential error corrected.

Contact us