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

From |
Kyle Hood <kyle.hood@yale.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: spatial weighting matrix |

Date |
Wed, 08 Apr 2009 13:52:01 -0400 |

Nick Cox wrote:

The queen terminology in spatial analysis comes via chess.Imagine squares on a chessboard.A queen can enter a neighbouring square either across a length of boundary (over a link or edge in a boundary network) or diagonally (iftwo areas touch at a vertex or node in a boundary network).A rook or castle is limited to the first of those.In chess there are of course also other rules but they do not enterhere.Thus "queen" implies contiguity wide sense and "rook" strict sense.The terminology goes back at least as far as the work of geographer Andrew Cliff and econometrician-statistician Keith Ord in the late1960s.In terms of the question, I implemented weighting matrices via string variables [!!!] in -spautoc- on SSC in 1997, but I'd do it in Mata now,but I don't have detailed advice, let alone code.Nickn.j.cox@durham.ac.ukKyle HoodI'm not sure what "first-order queen contiguity" is, but you willprobably have to geocode address data (geocode: address->lat/lon), and Idon't think you can do this in Stata (that is, unless the breadth ofStata's capabilities is larger than I had realized, which is sometimesthe case). Try ArcGIS. Once you have the geocoded data, you canprobably compute the weight matrix in Stata, if you want.max r wrote:I need to create a spatial weighting matrix (first-order queen contiguity) for a unbalanced panel dataset. The dataset has address information in it. Is there a way to do this in STATA? I am trying to test for neigborhood effects in behavior. Appreciate your thoughts.* * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

-- Kyle Hood Department of Economics Yale University New Haven, CT website: http://www.econ.yale.edu/~kkh25/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**RE: st: spatial weighting matrix***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: spatial weighting matrix***From:*max r <maxr28@gmail.com>

**Re: st: spatial weighting matrix***From:*Kyle Hood <kyle.hood@yale.edu>

**RE: st: spatial weighting matrix***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**Re: st: spatial weighting matrix** - Next by Date:
**RE: st: spatial weighting matrix** - Previous by thread:
**Re: st: spatial weighting matrix** - Next by thread:
**RE: st: spatial weighting matrix** - Index(es):

© Copyright 1996–2017 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |