opls | R Documentation |
This function fits an Orthogonal Projections to Latent Structures (OPLS) model to the provided x (predictor) and y (response) data.
opls(x, y, scale = "center", crossval = 7, permutation = 20)
x |
A data.frame or tibble containing the x-data (predictors). |
y |
A data.frame or tibble containing the y-data (responses). |
scale |
A character string indicating the scaling method for the data ("center" or "pareto"). |
crossval |
An integer representing the number of cross-validation groups. |
permutation |
An integer representing the number of permutations for the permutation test. |
OPLS is a supervised modeling technique used to find the multidimensional direction in the x-space that explains the maximum multidimensional variance in the y-space. It separates the systematic variation in x into two parts: one that is linearly related to y (predictive components) and one that is statistically uncorrelated to the response variable y (orthogonal components).
A list containing the following components:
A matrix of x-scores (the projections of the x-data onto the predictive components).
A matrix of x-loadings (the weights of the original x-variables on the predictive components).
A matrix of x-weights (the weights used to calculate the x-scores).
A matrix of orthogonal scores (the projections of the x-data onto the orthogonal components).
A matrix of orthogonal loadings (the weights of the original x-variables on the orthogonal components).
A matrix of orthogonal weights (the weights used to calculate the orthogonal scores).
A matrix of y-weights (the weights used to calculate the y-scores).
A matrix of orthogonal y-weights (the weights used to calculate the orthogonal y-scores).
A matrix of y-scores (the projections of the y-data onto the predictive components).
Christian L. Goueguel
Trygg, J., and Wold, S., (2002). Orthogonal projections to latent structures (O-PLS). Journal of Chemometrics, 16(3):119-128.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.