NIPALS is an algorithm for computing PCA scores and loadings.

1 | ```
nipals(X, a, it = 10, tol = 1e-04)
``` |

`X` |
numeric data frame or matrix |

`a` |
maximum number of principal components to be computed |

`it` |
maximum number of iterations |

`tol` |
tolerance limit for convergence of the algorithm |

The NIPALS algorithm is well-known in chemometrics. It is an algorithm for computing PCA scores and loadings. The advantage is that the components are computed one after the other, and one could stop at a desired number of components.

`T ` |
matrix with the PCA scores |

`P ` |
matrix with the PCA loadings |

Peter Filzmoser <P.Filzmoser@tuwien.ac.at>

K. Varmuza and P. Filzmoser: Introduction to Multivariate Statistical Analysis in Chemometrics. CRC Press, Boca Raton, FL, 2009.

1 2 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.