Dear all,
I am trying to create a map of Africa with a dot for every observation in dataset_A, where dataset_A contains latitude and longitude for each obs. I suppose the tmap package is the easiest to do this. I am already failing at converting a Mapinfo interchange format (mif) file to Stata datasets. The mif file I am using is the Africa file from http://maplibrary.org/library/stacks/Africa/index.htm. The folder contains a .mif and a .mid file. I tried to convert it to dta using mif2dta:
The directory is set to the folder containing the two files. I tried polyline and point instead as type (I don't know which is the right one), but no luck. With polyline I get
"__000000 not found
r(111);"
and with the other two it creates a file containing values for ID only, the other variables all are empty. What am I doing wrong? Is this even the easiest package to use?
Thank you in advance.
Best,
Marco
I am trying to create a map of Africa with a dot for every observation in dataset_A, where dataset_A contains latitude and longitude for each obs. I suppose the tmap package is the easiest to do this. I am already failing at converting a Mapinfo interchange format (mif) file to Stata datasets. The mif file I am using is the Africa file from http://maplibrary.org/library/stacks/Africa/index.htm. The folder contains a .mif and a .mid file. I tried to convert it to dta using mif2dta:
Code:
mif2dta using Africa, type(polygon) genid(ID) attributes(Africa_1) coordinates(Africa_1_coord)
"__000000 not found
r(111);"
and with the other two it creates a file containing values for ID only, the other variables all are empty. What am I doing wrong? Is this even the easiest package to use?
Thank you in advance.
Best,
Marco
Comment