f1: F score

Description Usage Arguments References See Also Examples

Description

The F score is given by

F = ((1 + β^2) \cdot TP) / ((1 + β^2) \cdot TP + β^2 \cdot FP + FN)

where TP denotes true positives, TN denotes true negatives, FP denotes false positives, FN denotes false negatives, and β is a weighting parameter. In our implementation β has a default value of 1, meaning our F score defaults to the F1 score (hence the function name).

Usage

1
f1(tp, tn, fp, fn, beta = 1, ...)

Arguments

tp

True positives

tn

True negatives

fp

False positives

fn

False negatives

beta

The weighting parameter, defaults to 1

References

\insertRef

Soerensen1948zostmod \insertRefTversky1977zostmod

See Also

mcc()

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

Examples

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

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