Hello,
I'm trying to force a variable to stay within a stepwise regression.
When I follow the instructions published on "SAS Notes", it only retains that particular variable and no longer goes through the stepwise selection process.
Is there a way to let the program do the selection for me, but make sure to keep that particular variable as one of the selected?
The instructions were as follows:
Thanks.
It appears the instructions are not quite complete if you want to do further selection. If you follow those steps and review the Output window in the Regression node results, you will likely find something like the following:
/*** BEGIN EXCERPT ***/
NOTE: The stepwise model building process has reached the MAXSTEP= 0 limit.
The selected model is the model trained in the last step (Step 0). It consists of the following effects:
/*** END EXCERPT ***/
The Maximum Number of Steps property in the Selection Options dialog is set to 0 by default which means that no steps will be taken unless you change that value. Setting Maximum Number of Steps = 5 will allow the stepwise regression to take up to 5 steps before stopping. Try modifying this option and let me know if that doesn't solve the problem.
Hope this helps!
Doug
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.