Skip to contents

Package

precrec-package precrec
precrec: A package for computing accurate ROC and Precision-Recall curves

Main

evalmod()
Evaluate models and calculate performance evaluation measures
metric_curve()
Draw one evaluation measure against another

Data preparation

mmdata()
Reformat input data for performance evaluation calculation
join_scores()
Join scores of multiple models into a list
join_labels()
Join observed labels of multiple test datasets into a list
format_nfold()
Create n-fold cross validation dataset from data frame
create_sim_samples()
Create random samples for simulations

Visualization

Data retrieval

Partial AUC and partial curve

part()
Calculate partial AUCs

Confidence interval of AUC scores

auc_ci()
Calculate CIs of ROC and precision-recall AUCs

Precision-recall break-even point

prbe()
Calculate the precision-recall break-even point

Average precision

average_precision()
Calculate the average precision

Probability-based metrics

prob_metrics()
Calculate the Brier score, the RMSE and the log loss of predicted probabilities
prob_metrics_ci()
Calculate CIs of the Brier score and the log loss

Datasets

P10N10, B500, B1000, IB500, IB1000, M2N50F5 and C3N150

P10N10
A small example dataset with several tied scores.
B500
Balanced data with 500 positives and 500 negatives.
B1000
Balanced data with 1000 positives and 1000 negatives.
IB500
Imbalanced data with 500 positives and 5000 negatives.
IB1000
Imbalanced data with 1000 positives and 10000 negatives.
M2N50F5
5-fold cross validation sample.
C3N150
Multiclass sample with three classes.