metrica2.1.0 package

Prediction Performance Metrics

AC

Ji and Gallo's Agreement Coefficient (AC)

accuracy

Accuracy

agf

Adjusted F-score

AUC_roc

Area Under the ROC Curve

B0_sma

Intercept of standardized major axis regression (SMA).

B1_sma

Slope of standardized major axis regression (SMA).

d1

Modified Index of Agreement (d1).

balacc

Balanced Accuracy

bland_altman_plot

Bland-Altman plot

bmi

Bookmaker Informedness

CCC

Concordance correlation coefficient (CCC)

confusion_matrix

Confusion Matrix

csi

Critical Success Index | Jaccard's Index

d

Willmott's Index of Agreement (d)

d1r

Refined Index of Agreement (d1).

dcorr

Distance Correlation

deltap

deltaP or Markedness

density_plot

Density plot of predicted and observed values

E1

Absolute Model Efficiency (E1)

Erel

Relative Model Efficiency (Erel)

error_rate

Error rate

fmi

Fowlkes-Mallows Index

fscore

F-score

gmean

Geometric Mean

import_apsim_db

Import SQLite databases generated by APSIM NextGen

import_apsim_out

import_apsim_out

iqRMSE

Inter-Quartile Root Mean Squared Error

KGE

Kling-Gupta Model Efficiency (KGE).

khat

K-hat (Cohen's Kappa Coefficient)

lambda

Duveiller's Agreement Coefficient

LCS

Lack of Correlation (LCS)

likelihood_ratios

Likelihood Ratios (Classification)

MAE

Mean Absolute Error (MAE)

MAPE

Mean Absolute Percentage Error (MAPE)

MASE

Mean Absolute Scaled Error (MASE)

MBE

Mean Bias Error (MBE)

mcc

Matthews Correlation Coefficient | Phi Coefficient

metrica-package

metrica: Prediction Performance Metrics

metrics_summary

Prediction Performance Summary

MIC

Maximal Information Coefficient

MLA

Mean Lack of Accuracy (MLA)

MLP

Mean Lack of Precision (MLP)

MSE

Mean Squared Error (MSE)

npv

Negative Predictive Value

NSE

Nash-Sutcliffe Model Efficiency (NSE)

p4

P4-metric

PAB

Percentage Additive Bias (PAB)

PBE

Percentage Bias Error (PBE).

PLA

Percentage Lack of Accuracy (PLA)

PLP

Percentage Lack of Precision (PLP)

PPB

Percentage Proportional Bias (PPB)

precision

Precision | Positive Predictive Value

prevalence

Prevalence

r

Sample Correlation Coefficient (r)

RMLA

Root Mean Lack of Accuracy (RMLA)

R2

Coefficient of determination (R2).

RAC

Robinson's Agreement Coefficient (RAC).

RAE

Relative Absolute Error (RAE)

recall

Recall | Sensitivity | True Positive Rate | Hit rate

RMAE

Relative Mean Absolute Error (RMAE)

RMLP

Root Mean Lack of Precision (RMLP)

RMSE

Root Mean Squared Error (RMSE)

RRMSE

Relative Root Mean Squared Error (RMSE)

RSE

Relative Squared Error (RSE)

RSR

Root Mean Standard Deviation Ratio (RSR)

RSS

Residual Sum of Squares (RSS)

SB

Squared bias (SB)

scatter_plot

Scatter plot of predicted and observed values

SDSD

Squared difference between standard deviations (SDSD)

SMAPE

Symmetric Mean Absolute Percentage Error (SMAPE).

specificity

Specificity | Selectivity | True Negative Rate

tiles_plot

Tiles plot of predicted and observed values

TSS

Total Sum of Squares (TSS)

Ub

Mean Bias Error Proportion (Ub)

Uc

Lack of Consistency (Uc)

Ue

Lack of Consistency (Ue)

uSD

Uncorrected Standard Deviation

var_u

Uncorrected Variance (var_u)

Xa

Accuracy Component (Xa) of CCC

A compilation of more than 80 functions designed to quantitatively and visually evaluate prediction performance of regression (continuous variables) and classification (categorical variables) of point-forecast models (e.g. APSIM, DSSAT, DNDC, supervised Machine Learning). For regression, it includes functions to generate plots (scatter, tiles, density, & Bland-Altman plot), and to estimate error metrics (e.g. MBE, MAE, RMSE), error decomposition (e.g. lack of accuracy-precision), model efficiency (e.g. NSE, E1, KGE), indices of agreement (e.g. d, RAC), goodness of fit (e.g. r, R2), adjusted correlation coefficients (e.g. CCC, dcorr), symmetric regression coefficients (intercept, slope), and mean absolute scaled error (MASE) for time series predictions. For classification (binomial and multinomial), it offers functions to generate and plot confusion matrices, and to estimate performance metrics such as accuracy, precision, recall, specificity, F-score, Cohen's Kappa, G-mean, and many more. For more details visit the vignettes <https://adriancorrendo.github.io/metrica/>.

  • Maintainer: Adrian A. Correndo
  • License: MIT + file LICENSE
  • Last published: 2024-06-30