Learn R Programming

rEDM (version 2.0.2)

ComputeError: Prediction skill statistics

Description

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

Usage

ComputeError(obs, pred, digits = 6)

Value

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

Arguments

obs

Numeric vector of observations.

pred

Numeric vector of predictions aligned with obs.

digits

Rounding applied to each statistic.

Examples

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

Run the code above in your browser using DataLab