Learn R Programming

easyVerification (version 0.1.8)

EnsError: Compute various ensemble mean error metrics

Description

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

Run this code
#forecast and observations
tm <- toymodel()

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

Run the code above in your browser using DataLab