Generalized Discrimination Score

This is an implementation of the Generalized Discrimination Score (also known as Two Alternatives Forced Choice Score, 2AFC) for various representations of forecasts and verifying observations. The Generalized Discrimination Score is a generic forecast verification framework which can be applied to any of the following verification contexts: dichotomous, polychotomous (ordinal and nominal), continuous, probabilistic, and ensemble. A comprehensive description of the Generalized Discrimination Score, including all equations used in this package, is provided by Mason and Weigel (2009).


afc

R-CMD-check CRANstatus

Compute the Generalized Discrimination Score for various types of forecasts and observations.

Installation

You can install the development version of afc from GitHub with:

# install.packages("pak")
pak::pak("MeteoSwiss/afc")

Example

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

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("afc")

1.5.0 by Jonas Bhend, a month ago


https://meteoswiss.github.io/afc/


Report a bug at https://github.com/MeteoSwiss/afc/issues


Browse source code at https://github.com/cran/afc


Authors: Andreas Weigel [aut] , MeteoSwiss [cph] , Jonas Bhend [cre, aut]


Documentation:   PDF Manual  


GPL (>= 3) license


Suggests testthat


See at CRAN