EnsError: Ensemble Mean Error

View source: R/EnsError.R

EnsErrorR Documentation

Ensemble Mean Error

Description

Computes various ensemble mean error scores. EnsMe computes the mean error, EnsMae the mean absolute error, EnsMse the mean squared error, and EnsRmse the square root of the mean squared error (for consistency with the veri package).

Usage

EnsError(ens, obs, type)

EnsMe(ens, obs)

EnsMae(ens, obs)

EnsMse(ens, obs)

EnsRmse(ens, obs)

Arguments

ens

n x k matrix of n forecasts from k ensemble members

obs

n verifying observations

type

specifying what error metric to compute, one of [me, mae, mse, rmse]

See Also

veriApply, EnsErrorss

Examples

# forecast and observations
tm <- toymodel()

# compute the mean bias
EnsError(tm$fcst, tm$obs, type = "me")
# equivalently
EnsMe(tm$fcst, tm$obs)


easyVerification documentation built on Aug. 15, 2023, 9:06 a.m.