BookmarkSubscribeRSS Feed
Jack_Sabbath
Calcite | Level 5

Hello SAS community,

 

Suppose that we are interested in extracting information from a sas data set which will be placed in a title. In particular, I am performing multiple regressions similar to the following blog post: https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html. I would like to take the variable name on which the regression is performed and place it in a title for each regression, say for the ith regression I would like a title like "Regression of Y vs xi". It seems to me that there must exist some function which may be applied to VarName (please see the above blog post) which returns a string of that variables name which may be used in the SAS's title function.

 

Thanks in advance for your help.

 

1 REPLY 1
LaurieF
Barite | Level 11

If I interpret what you're saying correctly: yes indeed.

 

Have a look at this: http://www2.sas.com/proceedings/sugi23/Coders/p75.pdf

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 1 reply
  • 755 views
  • 0 likes
  • 2 in conversation