Hello!
I am using the PROC REG to perform a stepwise selection to come up with a regression model. I have 56 potential regressors and I want a model with a combination of three of these regressors. How can I set the number of independent variables to 3?
I tried using the stop= option, but I don't know if it is correct or whether there is another way to do it:
Proc reg data= input outest= PAR tableout rsquare ;
model target = ®. / selection= stepwise stop=3 sle=0.05 sls=0.05 noint ;
output out=stima predicted= predict;
Run;
Can you help me?
Thank you!
What happened when you used STOP=3? Did it seem to work right? What is your concern here, please describe.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.