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, 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 <>
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 ( 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.


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:
> *
> *
> *

Federico Belotti, PhD
Research Fellow
Centre for Economics and International Studies
University of Rome Tor Vergata
tel/fax: +39 06 7259 5627

*   For searches and help try:

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