Learn R Programming

SpecsVerification (version 0.5-0)

SqErr: Calculate the squared error between forecast and observation

Description

Calculate the squared error between forecast and observation

Usage

SqErr(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 squared errors

See Also

AbsErr, ScoreDiff, SkillScore

Examples

Run this code
data(eurotempforecast)
mean(SqErr(rowMeans(ens), obs))

Run the code above in your browser using DataLab