Description Usage Arguments Value Author(s)

Computes orthogonal socres partial least squares (opls) projection with the NIPALS algorithm. It allows multiple response variables. Although the main use of the function is for projection, it also retrieves regression coefficients. NOTE: For internal use only!

1 2 3 4 | ```
opls_for_projection(X, Y, ncomp, scale,
maxiter, tol,
pcSelmethod = "var",
pcSelvalue = 0.01)
``` |

`X` |
a matrix of predictor variables. |

`Y` |
a matrix of either a single or multiple response variables. |

`ncomp` |
the number of pls components. |

`scale` |
logical indicating whether |

`maxiter` |
maximum number of iterations. |

`tol` |
limit for convergence of the algorithm in the nipals algorithm. |

`pcSelmethod` |
if |

`pcSelvalue` |
a numerical value that complements the selected method
( |

a list containing the following elements:

`coefficients`

the matrix of regression coefficients.`bo`

a matrix of one row containing the intercepts for each component.`scores`

the matrix of scores.`X_loadings`

the matrix of X loadings.`Y_loadings`

the matrix of Y loadings.`projection_mat`

the projection matrix.`Y`

the`Y`

input.`variance`

a`list`

conating two objects:`x_var`

and`y_var`

. These objects contain information on the explained variance for the`X`

and`Y`

matrices respectively.`transf`

a`list`

conating two objects:`Xcenter`

and`Xscale`

.`weights`

the matrix of wheights.

Leonardo Ramirez-Lopez

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.