EconPapers    
Economics at your fingertips  
 

SPWMATRIX: Stata module to generate, import, and export spatial weights

P. Wilner Jeanty ()

Statistical Software Components from Boston College Department of Economics

Abstract: spwmatrix creates distance-based spatial weights and imports adjacency-based weights (gal files saved in sparse format) created in the GeoDa software (See http://geodacenter.asu.edu":http://geodacenter.asu.edu). spwmatrix also generates economic distance spatial weights based on an economic variable (See Fingleton and Le Gallo, 2008), and social network and socio-economic spatial based on a social variable (See Anselin and Bera, 1998). Created or imported spatial weights and their eigenvalues are generated as temporary Stata matrices or permanent Mata files. spwmatrix also exports the generated spatial weights to a .dat file for use in Matlab or to a .gwt file for use in GeoDa. When creating spatial weights, spwmatrix uses either the straight-line (crow-fly) Euclidean distance or the Great Circle distance depending on whether the latitudes and longitudes supplied in varlist are projected or not.

Language: Stata
Requires: Stata version 12
Keywords: spatial weights; GeoDa; distance weights; social weights (search for similar items in EconPapers)
Date: 2010-01-26, Revised 2014-03-15
Note: This module should be installed from within Stata by typing "ssc install spwmatrix". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations: View citations in EconPapers (10)

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/s/spwmatrix.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/s/spwmatrix.mata program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lspwmatrix.mlib Mata object library (application/x-stata)
http://fmwww.bc.edu/repec/bocode/s/spwmatrix.sthlp help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s457111

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-30
Handle: RePEc:boc:bocode:s457111