Description Usage Arguments Value Author(s) Examples
The function predicts new responses based on a fitted lpls-model and a set of new predictor data.
1 2 3 |
object |
A fitted lpls-model as returned from |
ncomp |
The number of components to be used for prediction. |
X2new |
A matrix of size (l x p) holding the predictor values of X2 for l new observations. |
silent |
Suppress warning about components being large |
pred |
The predicted response values. |
beta0 |
The estimated intercept in the lpls-regression model |
beta1 |
The estimated vector of regression coefficients for the p predictor variables in X2. |
Solve Sæbø
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.