- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 11-04-2021 06:37 PM
(1395 views)
Hi all! I am curious about curating a map within the SAS program. I have a dataset that only has local counties (and their respective county codes), will this be sufficient to create a map in SAS? How does one prepare their dataset to create one?
I appreciate any sort of resources that I can look up and learn more!
Many thanks!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Yes it is!
SGMAPS is the procedure you likely want to start with, but it's a bit newer.
I would start with these two papers/references
https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3314-2019.pdf
Make sure to look at the examples section
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grmapref/n12i6frnyv35f6n16p7bo3u6hy2a.htm
And then here's a list of other SAS blog posts on the topic with many different examples
https://blogs.sas.com/content/tag/sgmap/
And very specifically for your question, an example of a county level map (of North Carolina)
https://robslink.com/SAS/ods10/nc_county_covid_percent_info.htm
SGMAPS is the procedure you likely want to start with, but it's a bit newer.
I would start with these two papers/references
https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3314-2019.pdf
Make sure to look at the examples section
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grmapref/n12i6frnyv35f6n16p7bo3u6hy2a.htm
And then here's a list of other SAS blog posts on the topic with many different examples
https://blogs.sas.com/content/tag/sgmap/
And very specifically for your question, an example of a county level map (of North Carolina)
https://robslink.com/SAS/ods10/nc_county_covid_percent_info.htm
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
If you have a SAS/Graph license, SAS ships US county borders/maps in the mapsgfk library. You can then use Proc Gmap or Proc SGmap to draw the county map, and color the counties using your data. I have several examples of North Carolina county maps in this collection - feel free to look at my code, and use that as a starting place for your California county map.
http://robslink.com/SAS/democd_nc/aaaindex.htm