- exp
A named numerical array of either the forecast with at least time
and member dimensions, or the probabilities with at least time and category
dimensions. The probabilities can be generated by s2dv::GetProbs
.
- obs
A named numerical array of either the observation with at least
time dimension, or the probabilities with at least time and category
dimensions. The probabilities can be generated by s2dv::GetProbs
. The
dimensions must be the same as 'exp' except 'memb_dim' and 'dat_dim'.
- ref
A named numerical array of either the reference forecast with at
least time and member dimensions, or the probabilities with at least time and
category dimensions. The probabilities can be generated by
s2dv::GetProbs
. The dimensions must be the same as 'exp' except
'memb_dim' and 'dat_dim'. If there is only one reference dataset, it should
not have dataset dimension. If there is corresponding reference for each
experiment, the dataset dimension must have the same length as in 'exp'. If
'ref' is NULL, the climatological forecast is used as reference forecast.
The default value is NULL.
- time_dim
A character string indicating the name of the time dimension.
The default value is 'sdate'.
- memb_dim
A character string indicating the name of the member dimension
to compute the probabilities of the forecast and the reference forecast. The
default value is 'member'. If the data are probabilities, set memb_dim as
NULL.
- cat_dim
A character string indicating the name of the category
dimension that is needed when exp, obs, and ref are probabilities. The
default value is NULL, which means that the data are not probabilities.
- dat_dim
A character string indicating the name of dataset dimension.
The length of this dimension can be different between 'exp' and 'obs'.
The default value is NULL.
- prob_thresholds
A numeric vector of the relative thresholds (from 0 to
1) between the categories. The default value is c(1/3, 2/3), which
corresponds to tercile equiprobable categories.
- indices_for_clim
A vector of the indices to be taken along 'time_dim'
for computing the thresholds between the probabilistic categories. If NULL,
the whole period is used. The default value is NULL.
- Fair
A logical indicating whether to compute the FairRPSS (the
potential RPSS that the forecast would have with an infinite ensemble size).
The default value is FALSE.
- weights_exp
A named numerical array of the forecast ensemble weights
for probability calculation. The dimension should include 'memb_dim',
'time_dim' and 'dat_dim' if there are multiple datasets. All dimension
lengths must be equal to 'exp' dimension lengths. The default value is NULL,
which means no weighting is applied. The ensemble should have at least 70
members or span at least 10 time steps and have more than 45 members if
consistency between the weighted and unweighted methodologies is desired.
- weights_ref
Same as 'weights_exp' but for the reference forecast.
- cross.val
A logical indicating whether to compute the thresholds
between probabilistics categories in cross-validation. The default value is
FALSE.
- na.rm
A logical or numeric value between 0 and 1. If it is numeric, it
means the lower limit for the fraction of the non-NA values. 1 is equal to
FALSE (no NA is acceptable), 0 is equal to TRUE (all NAs are acceptable).
than na.rm. Otherwise, RPS will be calculated. The default value is FALSE.
- sig_method.type
A character string indicating the test type of the
significance method. Check RandomWalkTest()
parameter
test.type
for details. The default is 'two.sided.approx', which is
the default of RandomWalkTest()
.
- alpha
A numeric of the significance level to be used in the statistical
significance test. The default value is 0.05.
- N.eff
Effective sample size to be used in the statistical significance
test. It can be NA (and it will be computed with the s2dv:::.Eno), FALSE
(and it will use the length of 'obs' along 'time_dim', so the
autocorrelation is not taken into account), a numeric (which is used for
all cases), or an array with the same dimensions as 'obs' except 'time_dim'
(for a particular N.eff to be used for each case). The default value is NA.
- ncores
An integer indicating the number of cores to use for parallel
computation. The default value is NULL.