ComputeError function

Compute error

Compute error

ComputeError evaluates the Pearson correlation coefficient, mean absolute error and root mean square error between two numeric vectors.

ComputeError(obs, pred)

Arguments

  • obs: vector of observations.
  • pred: vector of predictions.

Returns

A name list with components:

rhoPearson correlation
MAEmean absolute error
RMSEroot mean square error

Examples

data(block_3sp) smplx <- Simplex( dataFrame=block_3sp, lib="1 99", pred="105 190", E=3, columns="x_t", target="x_t") err <- ComputeError( smplx$Observations, smplx$Predictions )
  • Maintainer: Joseph Park
  • License: BSD_2_clause + file LICENSE
  • Last published: 2024-04-06

Useful links