Dear All,
I posted some time ago a similar post. I thought to have solved my problem, but it is still there. I use stata15. Basically, I convert a shapefile into a stata one using spshape2dta. It works fine:
If I spset the file shapecountries.dta I get:
Then I try to merge this file using another one:
Finally, I check that everything is fine with the spset (as far as I read, although I modify the file somehow - as merging it with another one - it should preserve the previous spset):
Why this is the case? Do you have any suggestion? Just for your reference, I upload the files used above. Thanks in advance.
Dario
https://dl.dropboxusercontent.com/u/27015126/data.zip
I posted some time ago a similar post. I thought to have solved my problem, but it is still there. I use stata15. Basically, I convert a shapefile into a stata one using spshape2dta. It works fine:
Code:
spshape2dta shapecountries (importing .shp file) (importing .dbf file) (creating _ID spatial-unit id) (creating _CX coordinate) (creating _CY coordinate) file shapecountries_shp.dta created file shapecountries.dta created
Code:
spset Sp dataset shapecountries.dta data: cross sectional spatial-unit id: _ID coordinates: _CX, _CY (planar) linked shapefile: shapecountries_shp.dta
Code:
merge m:m NAME using vp1 Result # of obs. ----------------------------------------- not matched 3 from master 0 (_merge==1) from using 3 (_merge==2) matched 248 (_merge==3) -----------------------------------------
Code:
spset invalid panel setting Type xtset to view panel data settings.
Why this is the case? Do you have any suggestion? Just for your reference, I upload the files used above. Thanks in advance.
Dario
https://dl.dropboxusercontent.com/u/27015126/data.zip
Comment