A NIPALS implementation that tolerates NAs in both
X and Y by ignoring them when updating scores and loadings.
This is useful when the design matrix is incomplete but the number of
components is relatively low.
Arguments
- X
numeric matrix (or coercible) of predictors. Missing values are allowed and handled internally.
- Y
numeric matrix (or coercible) of responses. Missing values are also handled internally.
- ncomp
number of PLS components to extract.
- center
logical whether to center
XandYbefore fitting. Means ignore missing entries.- stripped
logical. If
TRUEonly the coefficients and the mean vectors are returned.- maxiter
maximum number of inner iterations to force convergence on each component.
- tol
tolerance used to stop the inner loop when the direction vector changes very little.
- ...
currently ignored.