Description Usage Arguments Examples
Function to calculate a table of sensitivities, specficities and error rates for classification procedures using predicted probabilities and true classification labels.
1 2 |
x |
Vector of predicted probabilities for classification. For example, the predicted probabilities from a logistic model. |
grouping |
The vector of true class labels for the data. |
thresh |
Vector of desired thresholds for classification. The table will have as many rows as thresholds. |
plots |
Logical, plot the sensitivity, specificity and error rate curves versus the threshold vector on one plot. |
table |
Logical, returns the table of sensitivities, specificities and error rates for all thresholds. |
legend.loc |
Vector of two values for the x and y coordinate of the legend, respectively. Applicable only when plot is TRUE. |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.