Calculate correlation between forecasts and observations, and assess uncertainty
Corr(fcst, obs, N.eff = NA, conf.level = 0.95, handle.na = "na.fail")
vector of forecasts
vector of observations
user-defined effective sample size to be used in hypothesis test and for confidence bounds; if NA, the length of `obs` is used after removing missing values; default: NA
confidence level used the confidence interval; default = 0.95
how should missing values in forecasts and observations be handled; possible values are 'na.fail' and 'use.pairwise.complete'; default: 'na.fail'
vector with correlation, one-sided p-value, and central confidence interval at the user-defined confidence level
Von Storch, Zwiers (2001): Statistical analysis in climate research. Cambridge University Press.
CorrDiff
# NOT RUN { data(eurotempforecast) Corr(rowMeans(ens), obs) # }