Description Usage Arguments Details Value Author(s) See Also Examples
This function performs k-fold cross validation for partial least squares regression.
1 2 |
x |
predictor matrix |
y |
response vector |
random |
randomization of y |
nfolds |
number of folds - default is |
maxcomp |
Maximum number of components included within the models, if not specified, default is the variable (column) numbers in x. |
use.scale |
scale |
verbose |
shall we print the cross validation process |
... |
other arguments that can be passed to |
This function performs k-fold cross validation for partial least squares regression.
A list containing four components:
y
- response vector
ypred
- predicted y
residual
- cross validation result (y.pred - y.real)
RMSE
- RMSE
R2
- R2
Min-feng Zhu <wind2zhu@163.com>, Nan Xiao <road2stat@gmail.com>
See cv.enpls
for Cross Validation for ensemble PLS regression.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.