[R-sig-Geo] Creating listw object from n by n matrix

Sebastian Brandt sebastian_brandt at gmx.net
Sun May 1 22:50:05 CEST 2011


Dear List,

I have n datsets that I would like to test for spatial dependence using the lm.LMtests function. I have computed a n by n row-standardised spatial weights matrix that I have imported into R workspace from a csv.-file.

Running the lm.LMtests function I get an error message that the n by n matrix is not a listw object. How can I convert the matrix into a listw object?

I would be grateful for any help.

Sebastian



More information about the R-sig-Geo mailing list