Hello fellow stata users,
I am conducting a battery of tests on spatial data.
Two of which are:
The result for the spatdiag the Spatial error test for Moran's I statistic is not the same as the estat moran test for Moran's I.
On closer inspection, the method and formula for estat moran is found here https://www.stata.com/manuals/spestatmoran.pdf on page 5, snapshot below:
Equation1

The Lagrange Multiplier Error formula is given by Anselin L. et al. (Regional Science and Urban Economics 26 (1996) 77-104) as being
Equation 2

Where T is term denoted in the denominator "tr" above in Equation 1 relating to Moran's I.
These are the same formula.
On the other hand, Moran's I is given as being as follows by Anselin, L. (Spatial econometrics methods and models (Studies in operational regional science) DOI 10.1007/978-94-015-7799-1)
Equation 3

This is not the same as Equation 1 for Moran's I. It could be the case that Pisati's code for Moran's I is based on Equation 3.
My questions are therefore:
Harry
I am conducting a battery of tests on spatial data.
Two of which are:
- spatdiag, authored by Maurizio Pisati
- estat moran, from SSC
The result for the spatdiag the Spatial error test for Moran's I statistic is not the same as the estat moran test for Moran's I.
On closer inspection, the method and formula for estat moran is found here https://www.stata.com/manuals/spestatmoran.pdf on page 5, snapshot below:
Equation1
The Lagrange Multiplier Error formula is given by Anselin L. et al. (Regional Science and Urban Economics 26 (1996) 77-104) as being
Equation 2
Where T is term denoted in the denominator "tr" above in Equation 1 relating to Moran's I.
These are the same formula.
On the other hand, Moran's I is given as being as follows by Anselin, L. (Spatial econometrics methods and models (Studies in operational regional science) DOI 10.1007/978-94-015-7799-1)
Equation 3
This is not the same as Equation 1 for Moran's I. It could be the case that Pisati's code for Moran's I is based on Equation 3.
My questions are therefore:
- Am I correct that the estat moran test for Moran's I is actually an LM error test?
- If so, why is this the case?
- If so, what are the implications?
- If so, is Pisati's code under spatdiag the correct formulation for obtaining a Moran's I statistic
Harry
Comment