First of all I need to mention that I do not have much experience using SAS in geo data. I have a dataset with longitude and latitude and I need to see the distribution by countries. I tried to Google and the only solution I found is this: https://communities.sas.com/t5/Base-SAS-Programming/Is-there-a-way-to-get-County-using-latitude-and-longitude/td-p/145233 It works pretty well for USA data, but the ratio for the rest of the world is very poor (below 10%). I use this code:
proc ginside data=gps map=maps.world out=gpscounties;
id id cont;
run;
Where GPS is my data with longitude and latitude. Is this 10% ratio is normal or I miss something? Or may be there are other better ways to solve my problem?
I'm on SAS 9.4 TS1M2.
Here is an example:
data gps;
input x y;
datalines;
143.21 -33.494
119.306 26.0614
119.306 26.0614
143.21 -33.494
113.25 23.1167
139.751 35.685
113.25 23.1167
133.935 34.6617
133.935 34.6617
133.051 35.4722
;
run;