Hello everybody,

I wish to compute the Moran's I statistic and I'm following the code written by Pisani (https://www.stata.com/meeting/german...g12_pisati.pdf). I've created a binary spatial weights matrix for 20 Italian regions using GeoDa.

However, when I put the command below:

spatwmat using "weights.dta", name (Ws) standardize

This is what I get:

Matrix is not square

Does anyone know how to fix this problem?

Cheers,

Simon