Description Usage Arguments Value
svmroc_cv
estimates the SVM ROC curve using cross-validation.
1 2 3 |
X |
A matrix of covariates used for fitting the SVM. |
A |
A factor with two levels or an object that can be coerced to a factor with two levels; used as the response when fitting the SVM. |
kernel |
The kernel used for fitting the SVM, either "linear" or "Gaussian". Defaults to "linear". |
fold_id |
A vector indicating which fold each observation belows to when estimating
the ROC curve. If |
num_folds_roc |
Number of folds used to estimate ROC curve. Ignored if |
lambdas |
A numeric vector of penalty parameters to select from. Defaults to
|
sigmas |
A numeric vector of bandwidth parameters to select from. Defaults to
|
num_folds_params |
Number of folds for cross-validation to select tuning parameters. Defaults to 10. |
weights |
A vector of weights to use for the weighted SVM. Defaults to
|
seed |
Random number seed to set. If |
An object of class svmroc
, a list with only the following components:
sens
, a vector of sensitivities across weights, averaged across folds;
spec
, a vector of specificities across weights, averaged across folds.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.