I'm reading the comments inside plsregress code and this block mentions the intercept term in regression:
% [XL,YL,XS,YS,BETA] = PLSREGRESS(X,Y,NCOMP,...) returns the PLS regression % coefficients BETA. BETA is a (P+1)-by-M matrix, containing intercept % terms in the first row, i.e., Y = [ONES(N,1) X]*BETA + RESIDUALS, and % Y0 = X0*BETA(2:END,:) + RESIDUALS.
The regression beta contains the intercept term.
My question is
Can plsregress function deal with cases when one doesn't want an explicit intercept term? ie. I want the beta for
Y = X * BETA + residuals (so size P only, not P+1).
Can anyone direct me to the portion of the code that one can modify to take out the intercept term in the estimation process?