Skip to content

metrica

2.1.1

Prediction Performance Metrics

2packages depend
10.5Kdownloads / year
99.0%test coverage
13/13checks pass

Overview

About
Maintained by Adrian A. CorrendoFirst published 2022-05-127 releasesCRAN page ↗GitHub ↗

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

Install

Health

CRAN checks
13OK
Slowest check: 4.4 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 1.80
99.0%
Coverage · measured lines
100%
Documentation · exports
11
Dependencies · direct
Check history
  • OK2026-03-26
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-10
    5 OK · 0 NOTE · 0 WARNING · 9 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,232 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
0%
Documented parameters
99%
Return-value docs
100%
References docs
73%

Downloads

10.5K
CRAN downloads in the past year
Rank #3,855 · ~29/day · ~879/mo
Daily download trend is not available in this view yet.
65730 days
2.5K90 days
10.5K1 year
Compare downloads with other packages →
Also on160 r2u35 autocran1.9K conda_forge46 c2d4u

Repository

Repository
79Stars
8Forks
15Open issues
0Open PRs
8Releases
162Commits
9Contributors
162 commits · Last activity 2024-06-30 · 0% stars, 30d

Stars over time

2025-04-11 · 782026-07-07 · 79

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/adriancorrendo/metrica on 2026-07-30.

Continuous integration (2)
GitHub ActionsAppVeyor
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

Datasets

People & History

People (8)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (8)
Author, Maintainer, Copyright holder
Author · added in 2.0.0
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

7 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.1.1Latest
    2026-03-18 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.1.0
    2024-06-30 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 2.0.3
    2023-04-14 · diff ↗
  • 2.0.2
    2023-04-03 · diff ↗
  • 2.0.1
    2022-07-24 · diff ↗
  • 2.0.0
    2022-07-05 · diff ↗
  • 1.2.3
    2022-05-12
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-05-12
Total releases
7 / 4 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.6.0
Bundled data
5.9 KB / 6 files
Download size
2.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →