Compute the Generalized Discrimination Score for various types of forecasts and observations.
You can install the development version of afc from GitHub with:
# install.packages("pak")
pak::pak("MeteoSwiss/afc")This is a basic example which shows you how to solve a common problem:
library(afc)
data(cnrm.nino34.cc)
afc.cc(cnrm.nino34.cc$obsv,cnrm.nino34.cc$fcst)
#> [1] 0.8717949