Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: FW: Spatial weight matrix


From   "Stephen McComb" <[email protected]>
To   <[email protected]>
Subject   st: FW: Spatial weight matrix
Date   Tue, 6 Jan 2004 19:07:53 -0500

Hi,

I've tried to have stata create a spatial weight matrix with the following
command

  	spatwmat, name(w) xcoord( x) ycoord( y) band(0 500) binary

Stata responds with

	r(198);obs must be between 404 and 59577

I thought it was talking about the band but changing the band does not fix
the problem. I know that my observations are closer together than 404 and
59577.

Would stata have problems with observations sharing the same x and y? The
other possibility is that stata is looking for observations after my last
observation (which is 404, to a maximum of 59577 (is that the max?)), but
I'm still not sure how to solve this? Can anyone help me with this?

Thanks..

Steve


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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