gm: Geometric mean

Description Usage Arguments Details See Also Examples

Description

The geometric mean is given by

GM = √(TP / (TP + FN) \cdot TN / (TN + FP))

where TP denotes true positives, TN denotes true negatives, FP denotes false positives, and FN denotes false negatives.

Usage

1
gm(tp, tn, fp, fn, adj = FALSE, ...)

Arguments

tp

True positives

tn

True negatives

fp

False positives

fn

False negatives

adj

If TRUE calculate the adjusted mean, defaults to FALSE

Details

The adjusted geometric mean is given by

AGM = (GM + (TN / (TN + FP)) + (FP + TN)) / (1 + FP + TN) if TP / (TP + FN) > 0

and 0 otherwise, where TP again denotes true positives, TN true negatives, FP false positives, and FN false negatives.

See Also

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

Examples

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

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