Hello everybody!

If I have a gal/dbf file of a contiguity matrix (created through geoda, e.g.), in order to create a spatial weight matrix in .dta extension, I use the command "spmat":

spmat import myobj using filename.dbf, geoda
spmat getmatrix myobj W
getmata (x*)=W


My question is: suppose vice versa that I have the .dta file of the contiguity matrix. I can I export a gal/dbf file from the .dta file? (basically, I want to do the opposite process).

I tried with the command "export" of spatmat but I did not manage in doing such a thing.

Many thanks to whoever would like to help me with this, and Merry Christmas to everybody!

Kodi