pls.est | R Documentation |
Implementation of the partial least squares (PLS) algorithm as described in Hastie et al. (2009).
pls.est(X, Y)
X |
Matrix containing the independent variables. |
Y |
Vector containing the dependent/response values. |
Returns a list with the following items:
pls.scores |
The partial least squares scores. |
pls.loadings |
The partial least squares loadings. |
Theo Pepler
Hastie, T., Tibshirani, R., and Friedman, J. (2009). The Elements of Statistical Learning. Springer.
# The Iris data data(iris) indep <- iris[, 1:3] dep <- iris[, 4] pls.est(X = indep, Y = dep)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.