Skip to content

metrica

Prediction Performance Metrics

v2.1.1 · Mar 17, 2026 · MIT + file LICENSE

Description

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/>.

Downloads

938

Last 30 days

3933rd

2.3K

Last 90 days

9.1K

Last year

Trend: +40.6% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 26, 2026
ERROR 5 OK · 0 NOTE · 0 WARNING · 9 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-linux-x86_64-debian-clang

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘Cheatsheet.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘Cheatsheet.Rmd’

--- re-building ‘JOSS_publication.Rmd’ us
...[truncated]...
ARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘regression_case.Rmd’

SUMMARY: processing the following file failed:
  ‘classification_case.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘Cheatsheet.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘Cheatsheet.Rmd’

--- re-building ‘JOSS_publication.Rmd’ us
...[truncated]...
ARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘regression_case.Rmd’

SUMMARY: processing the following file failed:
  ‘classification_case.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-devel-linux-x86_64-fedora-clang

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘Cheatsheet.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘Cheatsheet.Rmd’

--- re-building ‘JOSS_publication.Rmd’ using rm
...[truncated]...
ARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘regression_case.Rmd’

SUMMARY: processing the following file failed:
  ‘classification_case.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘Cheatsheet.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘Cheatsheet.Rmd’

--- re-building ‘JOSS_publication.Rmd’ using rm
...[truncated]...
ARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘regression_case.Rmd’

SUMMARY: processing the following file failed:
  ‘classification_case.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-devel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'Cheatsheet.Rmd' using rmarkdown
--- finished re-building 'Cheatsheet.Rmd'

--- re-building 'JOSS_publication.Rmd' using rmarkdown
--- finished re-building 'JOSS_publication.Rmd'

--- re-building 'Sh
...[truncated]...
fication_case.Rmd'

--- re-building 'regression_case.Rmd' using rmarkdown
--- finished re-building 'regression_case.Rmd'

SUMMARY: processing the following file failed:
  'classification_case.Rmd'

Error: Vignette re-building failed.
Execution halted
ERROR r-patched-linux-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘Cheatsheet.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘Cheatsheet.Rmd’

--- re-building ‘JOSS_publication.Rmd’ us
...[truncated]...
ARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘regression_case.Rmd’

SUMMARY: processing the following file failed:
  ‘classification_case.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-release-linux-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘Cheatsheet.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘Cheatsheet.Rmd’

--- re-building ‘JOSS_publication.Rmd’ us
...[truncated]...
ARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘regression_case.Rmd’

SUMMARY: processing the following file failed:
  ‘classification_case.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-release-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'Cheatsheet.Rmd' using rmarkdown
--- finished re-building 'Cheatsheet.Rmd'

--- re-building 'JOSS_publication.Rmd' using rmarkdown
--- finished re-building 'JOSS_publication.Rmd'

--- re-building 'Sh
...[truncated]...
fication_case.Rmd'

--- re-building 'regression_case.Rmd' using rmarkdown
--- finished re-building 'regression_case.Rmd'

SUMMARY: processing the following file failed:
  'classification_case.Rmd'

Error: Vignette re-building failed.
Execution halted
ERROR r-oldrel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'Cheatsheet.Rmd' using rmarkdown
--- finished re-building 'Cheatsheet.Rmd'

--- re-building 'JOSS_publication.Rmd' using rmarkdown
--- finished re-building 'JOSS_publication.Rmd'

--- re-building 'Sh
...[truncated]...
fication_case.Rmd'

--- re-building 'regression_case.Rmd' using rmarkdown
--- finished re-building 'regression_case.Rmd'

SUMMARY: processing the following file failed:
  'classification_case.Rmd'

Error: Vignette re-building failed.
Execution halted

Reverse Dependencies (2)

imports

suggests

Dependency Network

Dependencies Reverse dependencies ggplot2 dplyr rlang tidyr DBI RSQLite ggpp minerva energy PAGE apsimx metrica

Version History

updated 2.1.1 ← 2.1.0 diff Mar 18, 2026
new 2.1.0 Mar 10, 2026
updated 2.1.0 ← 2.0.3 diff Jun 29, 2024
updated 2.0.3 ← 2.0.2 diff Apr 13, 2023
updated 2.0.2 ← 2.0.1 diff Apr 2, 2023
updated 2.0.1 ← 2.0.0 diff Jul 23, 2022
updated 2.0.0 ← 1.2.3 diff Jul 4, 2022
new 1.2.3 May 11, 2022