Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Partial Least Squares (PLS)

Subject: Partial Least Squares (PLS)

From: Jerry

Date: 3 Jul, 2013 16:44:10

Message: 1 of 6

Hello,

I would like to use partial least squares (PLS) for a dataset that include matrix of predictors or X (which are continuous variables) and matrix of responses or Y (which are categorial variables). Dose anyone know how I could modify the algorithm to consider these categorial response variables.

Thanks.
Jerry

Subject: Partial Least Squares (PLS)

From: Torsten

Date: 4 Jul, 2013 07:02:08

Message: 2 of 6

"Jerry " <jerrycholo@gmail.com> wrote in message <kr1kcq$8t$1@newscl01ah.mathworks.com>...
> Hello,
>
> I would like to use partial least squares (PLS) for a dataset that include matrix of predictors or X (which are continuous variables) and matrix of responses or Y (which are categorial variables). Dose anyone know how I could modify the algorithm to consider these categorial response variables.
>
> Thanks.
> Jerry

http://www.mathworks.de/de/help/stats/plsregress.html

Best wishes
Torsten.

Subject: Partial Least Squares (PLS)

From: Jerry

Date: 5 Jul, 2013 12:42:11

Message: 3 of 6

Here, (http://www.mathworks.de/de/help/stats/plsregress.html) both "X" and "Y" should include the continuous variables, but I would like to use the modified function of PLS, in that it could consider matrix or vector of "Y" as categorical variables.

Thanks,
Jerry

Subject: Partial Least Squares (PLS)

From: Greg Heath

Date: 5 Jul, 2013 16:55:09

Message: 4 of 6

"Jerry " <jerrycholo@gmail.com> wrote in message <kr6ev3$76g$1@newscl01ah.mathworks.com>...
> Here, (http://www.mathworks.de/de/help/stats/plsregress.html) both "X" and "Y" should include the continuous variables, but I would like to use the modified function of PLS, in that it could consider matrix or vector of "Y" as categorical variables.
>
> Thanks,
> Jerry

What happens if you use it with categoricals. Have you tried it?

Greg

Subject: Partial Least Squares (PLS)

From: Greg Heath

Date: 5 Jul, 2013 22:52:17

Message: 5 of 6

"Jerry " <jerrycholo@gmail.com> wrote in message <kr6ev3$76g$1@newscl01ah.mathworks.com>...
> Here, (http://www.mathworks.de/de/help/stats/plsregress.html) both "X" and "Y" should include the continuous variables, but I would like to use the modified function of PLS, in that it could consider matrix or vector of "Y" as categorical variables.
>
> Thanks,
> Jerry

What happens when you try to use it with a categorical Y?

Greg

Subject: Partial Least Squares (PLS)

From: Arthur Goldsipe

Date: 8 Jul, 2013 14:00:22

Message: 6 of 6

Hi Jerry,

As you probably already know, regression methods result in a continuous value for your response Y. If your "true" response is a categorical variable, one approach is to use logistic regression when you have only two categorical or multinomial logistic regression when you have several categories. At a very high level, this allows you to take a prediction for a continuous variable Y (obtained for your usual regression model) and transform that into information about the category. I'm not sure how readily these approaches can be adapted for use with the plsregress function, but you can at least start reading about the methods on wikipedia:

http://en.wikipedia.org/wiki/Logistic_regression
http://en.wikipedia.org/wiki/Multinomial_logistic_regression

-Arthur

"Greg Heath" <heath@alumni.brown.edu> wrote in message <kr7in0$m20$1@newscl01ah.mathworks.com>...
> "Jerry " <jerrycholo@gmail.com> wrote in message <kr6ev3$76g$1@newscl01ah.mathworks.com>...
> > Here, (http://www.mathworks.de/de/help/stats/plsregress.html) both "X" and "Y" should include the continuous variables, but I would like to use the modified function of PLS, in that it could consider matrix or vector of "Y" as categorical variables.
> >
> > Thanks,
> > Jerry
>
> What happens when you try to use it with a categorical Y?
>
> Greg

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us