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.
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.
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.