hi: Frequency of hits or true positives (TP).

Description Usage Format Details See Also


hi is the frequency of hits or true positives (TP) in a population of N individuals.




An object of class numeric of length 1.


Definition: hi is the frequency of individuals for which Condition = TRUE and Decision = TRUE (positive).

hi is a measure of correct classifications, not an individual case.


  1. to probabilities: The frequency hi depends on the sensitivity sens (aka. hit rate or true positive rate, TPR) and is conditional on the prevalence prev.

  2. to other frequencies: In a population of size N the following relationships hold:

    • N = cond.true + cond.false (by condition)

    • N = dec.pos + dec.neg (by decision)

    • N = dec.cor + dec.err (by correspondence of decision to condition)

    • N = hi + mi + fa + cr (by condition x decision)

See Also

sens is the probability of hits or hit rate HR; num contains basic numeric parameters; init_num initializes basic numeric parameters; freq contains current frequency information; comp_freq computes current frequency information; prob contains current probability information; comp_prob computes current probability information; is_freq verifies frequencies.

Other frequencies: N, cond.false, cond.true, cr, dec.cor, dec.err, dec.neg, dec.pos, fa, mi

Other essential parameters: cr, fa, mi, prev, sens, spec

riskyr documentation built on Feb. 19, 2018, 5 p.m.