Dear Stata users,
I would kindly like to ask you two things related to the command "spmat". Thank you very much
I have created my spatial weight matrix (inverse distance) for my dataset of 17 regions through:
"spmat idistance W longitude latitude, id(ID) dfunction(dhaversine)" (where "W" is the spatial-weighting object)
1) I kindly wanted to ask you (forgive me if this is a stupid question) how I could compute different threshold distances to test for spatial autocorrelation with the weight matrix, that is, for instance, set to zero all the values of the weight matrix whose distance is, e.g., higher than 100 kms.
2) Also (second question) I was wondering if it is possible to calcolate the Moran's I statistic for deriving the optimal distance through the command "spmat" (I only found Moran's I from "spatwmat"). This because I have to derive the optimal threshold distance (beyond which there is no more spatial effect anymore).
Thank you very much and best wishes for a great 2016 to everyone!
Kodi
I would kindly like to ask you two things related to the command "spmat". Thank you very much

I have created my spatial weight matrix (inverse distance) for my dataset of 17 regions through:
"spmat idistance W longitude latitude, id(ID) dfunction(dhaversine)" (where "W" is the spatial-weighting object)
1) I kindly wanted to ask you (forgive me if this is a stupid question) how I could compute different threshold distances to test for spatial autocorrelation with the weight matrix, that is, for instance, set to zero all the values of the weight matrix whose distance is, e.g., higher than 100 kms.
2) Also (second question) I was wondering if it is possible to calcolate the Moran's I statistic for deriving the optimal distance through the command "spmat" (I only found Moran's I from "spatwmat"). This because I have to derive the optimal threshold distance (beyond which there is no more spatial effect anymore).
Thank you very much and best wishes for a great 2016 to everyone!
Kodi

Comment