pca_nipals {resemble} | R Documentation |
Principal components based on the non-linear iterative partial least squares (nipals) algorithm
Description
Computes orthogonal socres partial least squares (opls) regressions with the NIPALS algorithm. It allows multiple response variables. For internal use only!
Usage
pca_nipals(X, ncomp, center, scale,
maxiter, tol,
pcSelmethod = "var",
pcSelvalue = 0.01)
Arguments
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 ( |
Value
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
: alist
conating two objects:center
andscale
, which correspond to the vectors used to center and scale the input matrix.
Author(s)
Leonardo Ramirez-Lopez