Description Usage Arguments Value
svmroc
fits a weighted support vector machine to estimate a receiver operating
characteristic curve.
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. |
new_X |
A matrix of covariates used as the testing set for estimating the ROC curve. |
new_A |
A factor with two levels or an object that can be coerced to a factor with
two levels; used as the response for the testing set for estimating the ROC curve.
Must have the same levels as |
kernel |
The kernel used for fitting the SVM, either "linear" or "Gaussian". Defaults to "linear". |
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 |
Number of folds for cross-validation to select tuning parameters. Defaults to 5. |
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 the following components:
sens
, estimated sensitivities across weights; spec
, estimated
specificities across weights; models
, a list of models fit for each weight;
weights
, the vector of weights used in the fit;
new_X
, the matrix of covariates in the testing set; and new_Y
, the
responses in the testing set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.