How to create generalized spatial weight matrix in R
On Thu, 4 Dec 2003, Susumu [ISO-2022-JP] TANIMURA/$BC+B<(B $B?8(B wrote:
It is very happy to get response from the author of spdep. The idea to use the boundary length proportions from a Voronoi diagram instead of polygon borders is ingenious for me. Since tripack or deldir seems to be related to voronoi diagram in current library of R, I am going to check these. Do you have any other suggestions?
No, I was thinking of tripack, but both could do it. They already contain topology (left-right neighbours I think) and computing the length of the boundaries must be simple. Perhaps someone with time on their hands and access to a range of shapes could see if this would be a workable or a very bad hack? It should handle Iowa quite well, shouldn't it? Can RArcInfo give us lengths of shared boundaries as a target from e00 and Arc binary polygons, say get.arcdata()? Cliff and Ord exclude the study area boundary - the proportion is of all internal boundaries per polygon, this probably needs to be looked at too?
I have enjoyed Moran's I with spdep package, but I found nb2listw() supported only binary spatial weight matrix and its standardized one.
See the glist argument to nb2listw() for the way to insert generalised weights, such as inverse distance.
I overlooked the glist. You gave us example in help, so I now know how to make generalized spatial wight matrix from any other list.
Other than R, which software can create generalized spatial weight matrix?
On Windows, you could try GeoDa.
Ummm, I am a Linux user.
Any others with experience of benefits or otherwise of using generalised weights? Roger
Thank you.
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-geo
Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: Roger.Bivand at nhh.no