BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Reeza
Super User
The dataset should exist in your work library, you now have the name. You should be able to use it as any other table.
Urban_Science
Quartz | Level 8

I'm sorry to chime in after this thread has been marked as "Solved!", but the easiest way to use the residuals from a regression model as the target of another model is to:

1. Connect a Metadata node after the regression node.  

2. Click on "..." In the Train Property value

3. Find the column that has Role = "Target" and change New Role to "Rejected"

4. Find the column that has Role = "Residual" and change New Role to "Target" (This column should also start with R_ like Reeza said)

5. Click "OK" (in the lower right corner of the window)

 

Any nodes after the Metadata node will now use that residual column as the target variable.

 

Attached is an example picture of the options.

Reeza
Super User
Thanks for chiming in, always best to know the most efficient way to do something. I don't have access to EM anymore so most answers are off memory or documentation.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 18 replies
  • 2889 views
  • 3 likes
  • 3 in conversation