View source: R/get.performance.measures.R

This function exports confusion matrix (i.e., true positive, false positive, true negative, and false negative) and calculates 11 performance measures. The performance measures are AUC, Precision, Recall, False Positive Rate, True Negative Rate, F-measure, Accuracy, MCC, G-mean, G-measure, and Balance.

1 | ```
get.performance.measures(outcome, prob, threshold = 0.5)
``` |

`outcome` |
a vector of the outcome labels. |

`prob` |
a numeric vector of the predicted probability. |

`threshold` |
a numeric threshold for the predicted probability. A predicted probability of above a threshold is considered a positive prediction. |

jirayusjiar/Jmisc documentation built on May 17, 2019, 8:48 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.