Package 'AllMetrics'

Title: Calculating Multiple Performance Metrics of a Prediction Model
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>.
Authors: Dr. Sandip Garai [aut, cre]
Maintainer: Dr. Sandip Garai <[email protected]>
License: GPL-3
Version: 0.2.1
Built: 2025-02-06 02:38:55 UTC
Source: https://github.com/cran/AllMetrics

Help Index


Calculating Multiple Performance Metrics of a Prediction Model

Description

This provides a function to calculate multiple performance metrics for actual and predicted values.

Usage

all_metrics(actual, predicted)

Arguments

actual

This is the actual time series values

predicted

This is the predicted values of a time series using a model

Value

  • AllMetrics - A data frame containing two columns with first column as the name of the eight metrics and second column as the corresponding values

References

  • Garai, S., & Paul, R. K. (2023). Development of MCS based-ensemble models using CEEMDAN decomposition and machine intelligence. Intelligent Systems with Applications, 18, 200202.

  • Garai, S., Paul, R. K., Kumar, M., & Choudhury, A. (2023). Intra-annual National Statistical Accounts Based on Machine Learning Algorithm. Journal of Data Science and Intelligent Systems. https://doi.org/10.47852/bonviewJDSIS3202870

  • Garai, S., Paul, R.K., Yeasin, M., Paul, A.K. (2024). CEEMDAN-Based Hybrid Machine Learning Models for Time Series Forecasting Using MARS Algorithm and PSO-Optimization. Neural Processing Letters, 56, 92. https://doi.org/10.1007/s11063-024-11552-w

Examples

actual <- c(1.5, 2.3, 25, 52, 14)
predicted <- c(1.2, 10, 3.5, 4.3, 5.6)
# Inside the function 1st specify actual then predicted
print(all_metrics(actual, predicted))