| OPLS_NIPALS_DNR | R Documentation |
One NIPALS OPLS step on a (lambda-weighted) concatenated block matrix.
Computes one predictive component and one orthogonal component in a single
pass. This function is the recommended building block for constructing an
OPLS-based FUN argument for ComDim_y() when nort > 0.
For nort = 0 (plain PLS) a simpler PLS wrapper is sufficient.
OPLS_NIPALS_DNR(W = W, y = y, threshold = 1e-10)
W |
Numeric matrix (n x p): the concatenated, lambda-weighted blocks
as passed by |
y |
Numeric matrix (n x q): the response block (dummy matrix for
discriminant analysis, numeric matrix for regression). Only the first
column drives the NIPALS u-score iteration; all columns are used to
compute the Y-loading |
threshold |
Convergence threshold for the u-score update (default
|
A named list:
Predictive X-score (length n).
Predictive X-weight (length p), L2-normalised.
X-loading (length p).
Y-loading (length q = ncol(y)).
Y-score (length n).
Orthogonal X-score (length n).
Orthogonal X-weight (length p), L2-normalised.
Orthogonal X-loading (length p).
ComDim_y for the multi-block OPLS wrapper that uses
this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.