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

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 542 views
  • 0 likes
  • 2 in conversation