Description Usage Arguments Value Author(s)

View source: R/pls_prediction.R

Predicting scores and Y outcome using PLS component(s)

1 | ```
pls_prediction(pls_mod, X)
``` |

`pls_mod` |
PLS component as outputted by function |

`X` |
Input matrix with rows and columns representing new observations with identical number of variables than length of |

Returned is a list with the following entries:

`Scores_pred` |
Predicted PLS component scores. |

`Y_hat` |
Predicted outcome. Averaged over all components in multi-PLS-component case. |

#'

`Y_hat_components` |
Predicted outcome (Y) for each component. |

Torben Kimhofer tkimhofer@gmail.com

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.