Learn R Programming

easyVerification (version 0.1.8)

veriUnwrap: Unwrap arguments and hand over to function

Description

decomposes input argument into forecast and verifying observations and hands these over to the function provided

Usage

veriUnwrap(x, verifun, nind = c(nens = ncol(x) - 1, nref = 0, nobs = 1, nprob
  = 0, nthresh = 0), ...)

Arguments

x
n x k + 1 matrix with n forecasts of k ensemble members plus the verifying observations
verifun
character string with function name to be executed
nind
named vector with number of ensemble members, ensemble members of reference forecasts, observations (defaults to 1), probability or absolute thresholds (see details)
...
additional arguments passed on to verifun

Details

Only forecasts with non-missing observation and complete ensembles are computed. All other forecasts are set to missing. For aggregate metrics (e.g. skill scores) the metric is computed over non-missing observation/forecast pairs only.

For computation of skill scores, reference forecasts can be provided. That is, the first nens columns of x contain the forecasts, the (nens + 1):(ncol(x) - 1) following columns contain the reference forecast, and the final column contains the observations. If no reference forecast is provided (i.e. ncol(x) == nens + 1), a climatological forecast is constructed from the n verifying observations.

The elements of vector nind have to be named with nens containing the number of ensemble members, nref the number of ensemble members in the reference forecast for skill scores, nobs the number of observations (only one supported), nprob the number of probability thresholds, and nthresh the number of absolute threshold for conversion of continuous forecasts to category forecasts.

See Also

veriApply