Learn R Programming

rEDM (version 1.15.4)

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)

Value

A name list with components:

rhoPearson correlation
MAEmean absolute error
RMSEroot mean square error

Arguments

obs

vector of observations.

pred

vector of predictions.

Examples

Run this code
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 )

Run the code above in your browser using DataLab