Hi all,
My data contains households’ GPS info (latitude, longitude, and altitude) and don’t have data such as administration level 3,
and I saw from other STATA forums such as (https://www.stata.com/support/faqs/g...pmap-and-maps/ and https://www.stata.com/stata15/spatia...essive-models/ )
they all say that should download shp. and dbf. format files of the place that I conducted research, and then merge them with my original data file.
-so I downloaded Malawi (where my data come from) shapefile from the internet, and then I used the command spshape2dta to turn them into dta. format files.
Now I got 19 variables as below, but no variable that I can use to 1:1 merge with my original data.
_ID
_CX
_CY
Shape_Leng Shape_Area
ADM3_EN
DM3_PCODE
ADM3_REF
ADM3ALT1EN
ADM3ALT2EN
ADM2_EN
ADM2_PCODE
ADM1_EN
ADM1_PCODE
ADM0_EN
ADM0_PCODE
ate valid
On validTo
And then, I tried to find the administration level 3 based on my GPS info in google map & also in the google excel sheet with Plus Code plugin so that I can merge them with variable DM3_PCODE, but the problem is this method is not feasible.
Any information would be appreciated.
Thanks.
Related Posts with how to merge the spatial data when there is no common variables in two dataset?
How to drop specific observations from dataset in Stata?Hello, I have a large dataset but I do not need all observations. The dataset contains data for eve…
How to generate 5 year-sum variables?Hello, I have been trying to generate a variable that takes the five-year sum (from t-4 to to year t…
How to randomly select control sample for the treatment sample multiple times and run regressions?Dear all, I am using Stata 14.0 to solve the questions about randomly selecting control sample for t…
Need some help on how to run multivariat tobit (mvtobit) in STATAI am engaging on a research and among the objectives measuring the status of rural household’s multi…
Date problem. Again...Hi, I have read the documentation but I still do not understand why I can npt convert my string var…
Subscribe to:
Post Comments (Atom)
0 Response to how to merge the spatial data when there is no common variables in two dataset?
Post a Comment