| nipals.fit | R Documentation |
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.
nipals.fit(
X,
Y,
ncomp,
center = TRUE,
stripped = FALSE,
maxiter = 500,
tol = 1e-06,
...
)
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 |
stripped |
logical. If |
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. |
A list with the same components as nipals.fit, but the
computations never fail in the presence of missing entries.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.