me: me

View source: R/me.R

meR Documentation

me

Description

Calculates the mean error (ME) from observed and predicted values.

Usage

me(observed, predicted)

Arguments

observed

Numeric vector of observed values

predicted

Numeric vector of predicted values. The length shall be the same as for observed.

Details

ME = bias = mean(observed - predicted)

Value

The mean error (ME) calculated from the observed and the predicted values.

Examples

o<-1:5
p<-c(2,2,4,3,5)
me(observed=o, predicted=p)


mapsRinteractive documentation built on April 24, 2023, 9:10 a.m.