Description Usage Arguments Value Author(s) References See Also Examples
This function is used to perform cross validation based on a training data set to select the best tuning parameter.
1 |
x |
The usage of this argument is the same as that in the "smac" function. |
y |
The usage of this argument is the same as that in the "smac" function. |
kfold |
The number of subsamples for cross validation. This number should be less than the sample size of the class with the fewest obervations. A warning will be given if kfold is too large. Default is 5. |
lambda |
The usage of this argument is the same as that in the "smac" function. |
nlambda |
The usage of this argument is the same as that in the "smac" function. |
lambda.min |
The usage of this argument is the same as that in the "smac" function. |
seed |
The seed for generating the random split of the training data set. Default is 0. |
weight |
The usage of this argument is the same as that in the "smac" function. |
... |
Other arguments used by function "smac" that are not specified. |
lambda |
The sequence of tuning parameters used in cross validation. Notice that the lambdas will be in a decreasing order. |
beta0 |
The estimated intercepts with respect to each tuning parameter lambda. |
beta |
The estimated parameters of the predictors with respect to each tuning parameter lambda. |
error |
The total number of misclassifications with respect to each tuning parameter lambda. If weight is specified, each miscalssification is multiplied by its corresponding weight. |
best.lambda |
The sequence of lambda values that have the smallest cross validation error. |
best.beta0 |
The intercepts that correspond to best.lambda. |
best.beta |
The parameters that correspond to best.lambda. |
model |
The fitted model with respect to each tuning parameter, using the entire training data set. |
min.error |
The minimum error in cross validation. |
Chong Zhang, Guo Xian Yau and Yufeng Liu
C. Zhang and Y. Liu (2014). Multicategory Angle-based Large-margin Classification. Biometrika, 101(3), 625-640.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.