EnsError: Ensemble Mean Error

Description Usage Arguments See Also Examples

View source: R/EnsError.R

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

1
2
3
4
5
6
7
8
9
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

1
2
3
4
5
6
7
#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 Dec. 4, 2017, 5:04 p.m.