SpecsVerification (version 0.5-3)

AbsErr: Calculate the absolute error between forecast and observation

Description

Calculate the absolute error between forecast and observation

Usage

AbsErr(fcst, obs)

Arguments

fcst

a N-vector representing N time instances of real-valued forecasts

obs

a N-vector representing N time instances of real-valued observations

Value

numeric N-vector of absolute errors |fcst - obs|

See Also

SqErr, ScoreDiff, SkillScore

Examples

Run this code
# NOT RUN {
data(eurotempforecast)
mean(AbsErr(rowMeans(ens), obs))
# }

Run the code above in your browser using DataCamp Workspace