BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Cruise
Ammonite | Level 13

Hi Folks:

 

I'm trying to define the spatial matrix for a South Korea in proc spatialreg using the macro suggested in the SUGI paper below. 

 

The macro requires a map data. 

Would South Korea map in Mapsgfk library work for this purpose? I just noticed that lat/long variables were labelled as unprojected in the proc contents. 

Any hints are appreciated.

 

https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/2481-2018.pdf

 

@Reeza 

skmap.png

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

For most things involving SAS map data sets I would tend to use the X Y coordinates.

 

View solution in original post

2 REPLIES 2
ballardw
Super User

For most things involving SAS map data sets I would tend to use the X Y coordinates.

 

Cruise
Ammonite | Level 13
Hey, you're right. There are X Y coordinates in the data set in addition to lat/long. Also, I realized that the definition of variables of macro includes y and x axis variables as well.
• lat = specifies the latitude or y axis variable.
• long = specifies the longitude or x axis variable.
Thanks ballardw. I greatly appreciate it.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 907 views
  • 1 like
  • 2 in conversation