Skip to content
Prev 27115 / 29559 Next

inconsistent results from moran.test()

On Fri, 8 Mar 2019, Jay Wang wrote:

            
Here, Wod_lw has an unknown style, "M" for matrix.
This only writes the neighbours (read the help page), not the weights.
The default style in nb2listw() is "W", row standardised.

What does:

all.equal(Wod_lw$weights, Wod_lw2$weights, check.attributes=FALSE)

say? And:

all.equal(Wod_lw$neighbours, Wod_lw2$neighbours, check.attributes=FALSE)
Do read the help pages, you'll find they explain these things.

Roger