Usage
benchmark.pls(X,y,m,R,ratio,verbose,k,ratio.samples,use.kernel,criterion,true.coefficients)
Arguments
X
matrix of predictor observations.
y
vector of response observations. The length of y
is the same as the number of rows of X
.
m
maximal number of Partial Least Squares components. Default is m=ncol(X)
.
R
number of runs. Default is 20.
ratio
ratio no of training examples/(no of training examples + no of test examples). Default is 0.8
verbose
If TRUE
, the functions plots the progress of the function. Default is TRUE
.
k
number of cross-validation splits. Default is 10.
ratio.samples
Ratio of (no of training examples + no of test examples)/nrow(X)
. Default is 1.
use.kernel
Use kernel representation? Default is use.kernel=FALSE
.
criterion
Choice of the model selection criterion. One of the three options aic, bic, gmdl. Default is "bic".
true.coefficients
The vector of true regression coefficients (without intercept), if available. Default is NULL
.