How long does the spmatrix take to create contiguity matrixes?

139 Views Asked by At

I've been trying to do spatial regressions for a paper. Now I have the problem that I need contiguity or inverse distance matrixes for this. I've been using an official shapefile for the communities in Germany for this. Making it a few thousand cases.

Now I've been running the command "spmatrix create contiguity Wc" on my computer for two hours, but it looks more like Stata crashed than it'll ever finish the calculations. I've been using Stata 15 IC.

Am I doing something wrong? Is there some way to restrain the matrix creation process so it'll go faster - like only allow a certain distance?

0

There are 0 best solutions below