Supports classification and regression. Note: only continuous variables are expected to be used as predictors. It is assumed that there are a sufficient number of subjects in each category.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
data |
The data frame containing the training set. |
resp.var |
Indicate the name of the column in the training set that contains the response variable. |
ref.lv |
reference level for categorical variables. |
nRep |
Number of times nCV is repeated. |
nFolds.outer |
Number of outer folds |
methods |
Similarly to the |
trControl |
A list of values that define how this function
acts. See |
tuneLength |
An integer denoting the amount of granularity
in the tuning parameter grid. By default, this argument is the
number of levels for each tuning parameters that should be
generated by |
preProcess |
A string vector that defines a pre-processing
of the predictor data. Current possibilities are "BoxCox",
"YeoJohnson", "expoTrans", "center", "scale", "range",
"knnImpute", "bagImpute", "medianImpute", "pca", "ica" and
"spatialSign". The default is no pre-processing. See
|
metric |
A string that specifies what summary metric will
be used to select the optimal model. By default, possible values
are "RMSE" and "Rsquared" for regression and "Accuracy" and
"Kappa" for classification. If custom performance metrics are
used (via the |
dir.path |
Directory where the CV data is stored. |
file.root |
Prefix for the CV filenames. |
stack.method |
??? |
weighted.by |
??? |
stack.wt |
??? |
control.stack |
??? |
save.PredVal |
Binary. Would you like to save the output from the PredVal function? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.