Skip to content
Prev 156399 / 398506 Next

Car.proper C[] matrix

jgasper <Jason.Gasper <at> noaa.gov> writes:
OK, I understand. Then I think that in the first case on:

http://mathstat.helsinki.fi/openbugs/Manuals/GeoBUGS/Manual.html#Proper

you would use style="W" in nb2listw(my_nb) - row standardisation - and 
rename weights to C, taking M as 1/card(my_nb), and use the glist= 
argument to nb2listw() to set up the second case. The weights[] will then 
be the C[] sparse object indexed by adj[]. Something like this is 
equivalent to example 2:

glist <- vector(mode="list", length=n)
for (i in seq(along=my_nb) glist[[i]] <- sqrt(E[my_nb[[i]]]/E[i])
lw_obj <- nb2listw(my_nb, glist=glist, style="B")

run listw2WB(), and rename weights to C, taking M as 1/E.

Perhaps R-sig-geo would be a more appropriate list - maybe someone there 
has done this already?

Roger Bivand