BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
kunee26
Calcite | Level 5

In proc reg command,

 

When we use 'selection=' option to select the best regression model based on various criteria  (e.g. aic, cp, bic, rsquare and etc..) 

 

How does SAS come up with a single best model when it needs to consider the criteria all together simultaneously?

 

I'm curious about this because I think different criteria may rank a model differently.

 

c.f)

proc reg data = /name of data/;

model Y = X1 -- Xn / selection = adjrsq mse aic bic cp  best = 1;

run;quit;

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

The selection of the model is based upon SELECTION=ADJRSQ, so the model with highest ADJRSQ is selected. It is not based upon aic bic cp etc. but those statistics are reported.

--
Paige Miller

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26

The selection of the model is based upon SELECTION=ADJRSQ, so the model with highest ADJRSQ is selected. It is not based upon aic bic cp etc. but those statistics are reported.

--
Paige Miller
kunee26
Calcite | Level 5

I've been searching around for this so long!

 

I feel like I've finally found oasis!

 

Thank you very much!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 197 views
  • 1 like
  • 2 in conversation