kappa: Cohen's kappa

Description Usage Arguments References See Also Examples

Description

Cohen's kappa (κ), also known as Heidke's skill score, is given by

κ = 1 - (1 - p_o) / (1 - p_e)

where p_o is the observed frequency and p_e is the expected frequency. We calculate p_o and p_e based on true positives (TP), true negatives (NP), false positives (FP), and false negatives (FN).

Usage

1
kappa(tp, tn, fp, fn, ...)

Arguments

tp

True positives

tn

True negatives

fp

False positives

fn

False negatives

References

\insertRef

Cohen1960zostmod \insertRefHeidke1926zostmod

See Also

tss()

Other classification scores: auc, bcr, brier, dor, dp, err, et, f1, fai, fm, gain, gl, gm, ignr, jacc, lr, mcc, op, rand, rt, rus, sm, ss, tss

Examples

1
kappa(tp = 45, fp = 15, fn = 25, tn = 15)

EU-ECDC/HerpesZosterModel documentation built on July 7, 2019, 2:58 a.m.