pca_nipals | R Documentation |
Computes orthogonal socres partial least squares (opls) regressions with the NIPALS algorithm. It allows multiple response variables. For internal use only!
pca_nipals(X, ncomp, center, scale,
maxiter, tol,
pcSelmethod = "var",
pcSelvalue = 0.01)
X |
a matrix of predictor variables. |
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. |
pcSelmethod |
the method for selecting the number of components.
Options are: |
pcSelvalue |
a numerical value that complements the selected method ( |
a list containing the following elements:
pc_scores
: a matrix of principal component scores.
pc_loadings
: a matrix of of principal component loadings.
variance
: a matrix of the variance of the principal components.
scale
: a list
conating two objects: center
and scale
, which correspond to the vectors used to center and scale the input matrix.
Leonardo Ramirez-Lopez
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.