Evaluate the prediction performance under the classification settings.
getperform(
ytest,
ypretest,
family,
threshold.method = c("youden", "specificity.control", "quantile"),
specificity = NULL
)List of measures.
Area under the ROC curve.
Area under the precision-recall curve.
Selected threshold of the probability.
Sensitivity with the selected threshold.
Positive predictive value with the selected threshold.
Specificity with the selected threshold.
Number of true positive with the selected threshold.
Number of false positive with the selected threshold.
Response vector for test data.
Predicted probability for test data.
"ls" or "logic". Return MSE when "ls" is used.
Method to get the threshold.
User-defined specificity or quantile.
The function supports three methods to select the threshold of the predicted probability.
threshold.method = "youden": The optimal threshold corresponds to
the point that maximizes the distance to the identity (diagonal) line on
the ROC curve.
threshold.method = "specificity.control": The optimal threshold
corresponds to the smallest value that ensures the required specificity
value.
threshold.method = "quantile": The optimal threshold corresponds to
the required quantile of the predicted probability.