BookmarkSubscribeRSS Feed
User423350
Calcite | Level 5

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 = &reg. / selection= stepwise stop=3 sle=0.05 sls=0.05 noint ;
output out=stima predicted= predict;
Run;

 

Can you help me?

Thank you!

1 REPLY 1
PaigeMiller
Diamond | Level 26

What happened when you used STOP=3? Did it seem to work right? What is your concern here, please describe.

--
Paige Miller

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 25. 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
  • 245 views
  • 0 likes
  • 2 in conversation