Hi @Kaushansky
Which SAS software stack you have access to / planning to use?
Hope this helps,
Ahmed
@Kaushansky wrote:
Hi there.
I’m using desktop SAS 9.4 and have SAS Studio 3.8
Hmm, to my knowledge, in this case you are limited to SAS/GIS (if licensed) and maybe Proc Geocode!?
There is an article on reverse geocoding here:
I would think that would be good for, say, mapping lat and long to state level, or county level, because a polygon can represent a state or county. Not sure how well it would work for mapping to a street.
I guess another option would be to use a google maps API or similar to do the lookups.
I also stumbled across this solution, which uses an R package to reverse geocode, and looks like it will look up street addresses. https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-do-reverse-geocoding-in-SAS/td-p/342193
Thanks but that did not work. Here is the dataset I have (attached). In terms of SAS I have Proc Map and Proc GIS loaded.
What is the best way top map by zipcode?
If you go to lexjansen.com index of user group papers, there are lots of papers about mapping by zipcode:
https://www.lexjansen.com/search/searchresults.php?q=map+zipcode
This isn't something I do, so can't recommend a specific approach.
Someone mentioned SAS/GIS - that would probably be the best SAS solution for this type of thing ... but it was never finished, and the current version of the software has been 'frozen' (no new decelopment) for many years, and it would be difficult to find expertise/advice/examples to help you with that.
You could plot lat/long crime data on streetmaps using SAS/Graph Proc Gmap, but it's a bit cumbersome (you have to download all the map tiles, and stitch them together, and then get a bit tricky to annotate your data onto the map tile images).
SAS Proc SGmap makes overlaying lat/long data onto streetmaps very simple - that's what I would recommend. I put an example in a blog that might get you started (sample code at bottom of the blog): https://blogs.sas.com/content/graphicallyspeaking/2021/08/17/cary-nc-data-fire-incidents/
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.