ComputeError: Prediction skill statistics

View source: R/EDM_ComputeError.R

ComputeErrorR Documentation

Prediction skill statistics

Description

Pearson rho, MAE, CAE and RMSE between observations and predictions.

Usage

ComputeError(obs, pred, digits = 6)

Arguments

obs

Numeric vector of observations.

pred

Numeric vector of predictions aligned with obs.

digits

Rounding applied to each statistic.

Value

A named list with elements rho, MAE, CAE and RMSE.

Examples

ComputeError(1:10 + 0, c(1:9 + 0, 8))

rEDM documentation built on Aug. 30, 2026, 9:07 a.m.