opls {resemble} | R Documentation |
Computes orthogonal socres partial least squares (opls) regressions with the NIPALS algorithm. It allows multiple response variables. For internal use only!
opls(X, Y, ncomp, scale, maxiter, tol, regression = TRUE, pcSelmethod = "cumvar", pcSelvalue = 0.99)
X |
a |
Y |
a |
ncomp |
the number of pls components. |
scale |
logical indicating whether |
maxiter |
maximum number of iterations. |
tol |
limit for convergence of the algorithm in the nipals algorithm. |
regression |
a logical indicating if the function is being used for regression. Otherwise it is used only for projection. Default is |
pcSelmethod |
if |
pcSelvalue |
a numerical value that complements the selected method ( |
a list containing the following elements:
coefficients
the matrix
of regression coefficients.
bo
a matrix
of one row containing the intercepts for each component.
scores
the matrix
of scores.
X.loadings
the matrix
of X loadings.
Y.loadings
the matrix
of Y loadings.
projectionM
the projection matrix
.
variance
a list
conating two objects: x.var
and y.var
.
These objects contain information on the explained variance for the X
and Y
matrices respectively.
transf
a list
conating two objects: Xcenter
and Xscale
.
Leonardo Ramirez-Lopez