Skip to content

AllMetrics

Calculating Multiple Performance Metrics of a Prediction Model

v0.2.1 · Mar 12, 2024 · GPL-3

Description

Provides a function to calculate multiple performance metrics for actual and predicted values. In total eight metrics will be calculated for particular actual and predicted series. Helps to describe a Statistical model's performance in predicting a data. Also helps to compare various models' performance. The metrics are Root Mean Squared Error (RMSE), Relative Root Mean Squared Error (RRMSE), Mean absolute Error (MAE), Mean absolute percentage error (MAPE), Mean Absolute Scaled Error (MASE), Nash-Sutcliffe Efficiency (NSE), Willmott’s Index (WI), and Legates and McCabe Index (LME). Among them, first five are expected to be lesser whereas, the last three are greater the better. More details can be found from Garai and Paul (2023) <doi:10.1016/j.iswa.2023.200202> and Garai et al. (2024) <doi:10.1007/s11063-024-11552-w>.

Downloads

CRAN

302

Last 30 days

14642nd

869

Last 90 days

4.1K

Last year

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

r2u CRAN

1

Last 30 days

26

Last 90 days

177

Last year

Trend: -90.9% (30d vs prior 30d)

autoCRAN

9

Last 7 days

24

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc 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 details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Dr. Sandip Garai <sandipnicksandy@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Dr.", "Sandip"),
                    family = "Garai",
                    role = c("aut", "cre"),
                    email = "sandipnicksandy@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Dr. Sandip Garai <sandipnicksandy@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Dr.", "Sandip"),
                    family = "Garai",
                    role = c("aut", "cre"),
                    email = "sandipnicksandy@gmail.com")
as necessary.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Dr. Sandip Garai <sandipnicksandy@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Dr.", "Sandip"),
                    family = "Garai",
                    role = c("aut", "cre"),
                    email = "sandipnicksandy@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Dr. Sandip Garai <sandipnicksandy@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Dr.", "Sandip"),
                    family = "Garai",
                    role = c("aut", "cre"),
                    email = "sandipnicksandy@gmail.com")
as necessary.

Code

Structure

Lines of code

86

Files

5

Compiled share

0%

Has compiled src

No

Language breakdown

R 52 (60.5%)Docs 34 (39.5%)

API

Exported functions

1

Internal functions

0

Recent export changes

v0.1.0+2 pattern:^[[:alpha:]]+, all_metrics

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2023-04-05

Latest release

2024-03-12

Avg cadence

160 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1.0: 84 LOCv0.1.1: 84 LOCv0.2.0: 80 LOCv0.2.1: 86 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (2)

Dependency Network

Dependencies Reverse dependencies AriGaMyANNSVR tsLSTMx AllMetrics

Version History

5 tracked
new 0.2.1 Mar 10, 2026
updated 0.2.1 ← 0.2.0 diff Mar 11, 2024
updated 0.2.0 ← 0.1.1 diff Sep 27, 2023
updated 0.1.1 ← 0.1.0 diff Apr 21, 2023
new 0.1.0 Apr 4, 2023