turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- what is the difference between PROC LOGISTIC and P...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-20-2017 04:24 PM - edited 02-20-2017 04:34 PM

I am new to SAS/STAT, and I am wondering what is the difference between PROC LOGISTIC and PROC GLMSELECT? The SAS syntax are very similar: both of them can run logistic regression models, both of them can have specific selection method (FORWARD, BACKWARD, STEPWISE), and both of them can be used to score a new dataset. The only difference I observe now is that PROC GLMSELECT can only be used to score a continuous response variable, while PROC LOGISTIC can be used to score binary response variables (eg: specify the event=1). Am I right on this? Is there any other difference that I should keep an eye on?

Accepted Solutions

Solution

02-21-2017
03:41 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-20-2017 04:55 PM

As far as I know, glmselect does not do logistic regression. GLM stands for *general linear models* which do not include the logistic.

Both procedures offer variable selection, but only glmselect offers advanced effect selection and the LAR and LASSO methods.

PG

All Replies

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-20-2017 04:41 PM

GLMSELECT works on a larger range of models than Logistic Regression. A model from GLMSELECT does not have to be a LOGISTIC regression.

I think your last statement is backwards? Logistic works on binary or categorical variables, while GLM can be continuous. The models can be very different. I also believe LOGISTIC will have some more specific features such as AUC & ROC curves but I haven't checked that out. The usual comparison is between GLM or REG and GLMSELECT.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-20-2017 08:28 PM

Thanks for your reply! Can you give me an example when PROC GLMSELECT should be used rather than PROC LOGISTIC, or vice versa?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-20-2017 09:05 PM

@PGStats Is correct, GLMSELECT doesn't do Logistic Regression.

Read the Overview for a comparison of the PROCS.

The GLMSELECT procedure performs effect selection in the framework of general linear models. A variety of model selection methods are available, including the LASSO method of Tibshirani (1996) and the related LAR method of Efron et al. (2004). The procedure offers extensive capabilities for customizing the selection with a wide variety of selection and stopping criteria, from traditional and computationally efficient significance-level-based criteria to more computationally intensive validation-based criteria. The procedure also provides graphical summaries of the selection search.

**The GLMSELECT procedure compares most closely to REG and GLM. The REG procedure supports a variety of model-selection methods but does not support a CLASS statement. The GLM procedure supports a CLASS statement but does not include effect selection methods. The GLMSELECT procedure fills this gap. GLMSELECT focuses on the standard independently and identically distributed general linear model for univariate responses and offers great flexibility for and insight into the model selection algorithm. GLMSELECT provides results (displayed tables, output data sets, and macro variables) that make it easy to take the selected model and explore it in more detail in a subsequent procedure such as REG or GLM.**

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-20-2017 04:43 PM

I think PROC GENMOD and possibly GLM can also be used to run a logistic regression model.

You'll quickly find there are many ways to do one thing in SAS.

Solution

02-21-2017
03:41 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-20-2017 04:55 PM

As far as I know, glmselect does not do logistic regression. GLM stands for *general linear models* which do not include the logistic.

Both procedures offer variable selection, but only glmselect offers advanced effect selection and the LAR and LASSO methods.

PG

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-20-2017 10:40 PM

PROC HPGENSELECT can do logistic .