Description Usage Arguments Details Value See Also
DEFUNCT!!
1 | o2m_stripped2(X, Y, n, nx, ny, tol = 1e-10, max_iterations = 100)
|
X |
Numeric matrix. Vectors will be coerced to matrix with |
Y |
Numeric matrix. Vectors will be coerced to matrix with |
n |
Integer. Number of joint PLS components. Must be positive. |
nx |
Integer. Number of orthogonal components in X. Negative values are interpreted as 0 |
ny |
Integer. Number of orthogonal components in Y. Negative values are interpreted as 0 |
tol |
Double. Threshold for which the NIPALS method is deemed converged. Must be positive. |
max_iterations |
Integer. Maximum number of iterations for the NIPALS method. |
NOTE THAT THIS FUNCTION DOES NOT CENTER NOR SCALES THE MATRICES! Any normalization you will have to do yourself. It is best practice to at least center the variables though. A stripped version of O2PLS
If both nx
and ny
are zero, o2m
is equivalent to PLS2 with orthonormal loadings.
This is a stripped implementation of O2PLS, using svd
. For data analysis purposes, consider using o2m
.
A list containing
Tt |
Joint X scores |
W. |
Joint X loadings |
U |
Joint Y scores |
C. |
Joint Y loadings |
P_Yosc. |
Orthogonal X loadings |
P_Xosc. |
Orthogonal Y loadings |
B_U |
Regression coefficient in |
B_T. |
Regression coefficient in |
H_TU |
Residuals in |
H_UT |
Residuals in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.