Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: how to create Queen and Rook Spatial Weight?


From   Federico Belotti <f.belotti@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: how to create Queen and Rook Spatial Weight?
Date   Wed, 15 May 2013 23:03:42 +0200

To my knowledge, the Jeanty's -spwmatrix- command can be used to generate an inverse distance squared spatial weights matrix using projected latitudes and longitudes while (rook or queen) contiguity matrices can be easily created (as .gal files) using the GeoDa software (https://geodacenter.asu.edu/projects/opengeoda). Once a .gal file has been created, you can use -spwmatrix- to easily import the contiguity matrix as a Stata matrix or as a permanent Mata file.

HTH,
Federico


On May 15, 2013, at 7:58 PM, ken first wrote:

> Hi Stata users
> 
> Does anyone know how to create Queen and Rook and square of inverse
> distance Spatial Weight using stata?
> 
> Many thanks,
> Ken
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

-- 
Federico Belotti, PhD
Research Fellow
Centre for Economics and International Studies
University of Rome Tor Vergata
tel/fax: +39 06 7259 5627
e-mail: federico.belotti@uniroma2.it
web: http://www.econometrics.it


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index