Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ComputeError

Compute error


Description

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

Usage

ComputeError(obs, pred)

Arguments

obs

vector of observations.

pred

vector of predictions.

Value

A name list with components:

rho Pearson correlation
MAE mean absolute error
RMSE root 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 )

rEDM

Empirical Dynamic Modeling ('EDM')

v1.10.0
BSD_2_clause + file LICENSE
Authors
Joseph Park [aut, cre] (<https://orcid.org/0000-0001-5411-1409>), Cameron Smith [aut] (<https://orcid.org/0000-0003-0020-5607>), George Sugihara [aut, ccp] (<https://orcid.org/0000-0002-2863-6946>), Ethan Deyle [aut] (<https://orcid.org/0000-0001-8704-8434>), Erik Saberski [ctb] (<https://orcid.org/0000-0002-6475-6187>), Hao Ye [ctb] (<https://orcid.org/0000-0002-8630-1458>), The Regents of the University of California [cph]
Initial release
2021-12-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.