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: Call for Content

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 462 views
  • 0 likes
  • 2 in conversation