BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
PaigeMiller
Diamond | Level 26

data a;

    set sashelp.class;

    if sex='M' then response=1; else response=0;

run;

proc pls data=a;

     model response=height weight;

run;

--
Paige Miller
Ksharp
Super User
@PaigeMiller Thanks to post the code. I want know if the link function is LOGIT and the distribution of Y is conforming to Binomial Distribution ? If it was not, How could I say it is a logistic model .
PaigeMiller
Diamond | Level 26

It does not use the logit link, as I said the math is different.

 

If you really want to say that you are doing "logistic regression", then you probably can't say that using PROC PLS. If you want to say that you are modeling a 0/1 binary response, then you can say that using PROC PLS. As I have been pointing out, there are benefits when you use PROC PLS, and there are some disadvantages as well, specifically that the logit link isn't used. If the question is: which model fits best when you have a lot of correlated input variables, then it is my understanding, as demonstrated in this paper, (and my own personal experience) that PLS produces better fitting models than any variable selection method.

 

Also, here is a version of PLS that does use the logit link, although I have never found SAS code that implements this.

--
Paige Miller
Ksharp
Super User

@PaigeMiller

I think PROC PLS is more like PROC REG, but better and more robust than PROC REG.

If you output the predict value by OUTPUT statement, you will see there is an obs 's predicted value is greater than 1, That could not be possible for a Probability .

PaigeMiller
Diamond | Level 26

Yes, there are drawbacks. I have always treated a predicted value >1 as a 1, and a predicted value <0 as a 0. PLS does a good job of modeling the "straight line" portion of the logistic curve.

 

The second link I gave overcomes this difficulty, it does use the proper logistic curve, while preserving the benefits of PLS in the case of correlated predictors, but as I said I am not aware of any SAS code that implements this.

--
Paige Miller
Ksharp
Super User

Yeah. Hope one day PROC PLS could support    link=logit   and   dist=binomial options .

Rick_SAS
SAS Super FREQ

See the article "An easy way to run thousands of regressions in SAS." The example in that article is OLS, but the method would also work for a binary response.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 22 replies
  • 4010 views
  • 11 likes
  • 7 in conversation