Learn R Programming

riskyr (version 0.1.0)

prev: The prevalence (baseline probability) of a condition.

Description

prev defines a condition's prevalence value (or baseline probability): The probability of the condition being TRUE.

Usage

prev

Arguments

Format

An object of class numeric of length 1.

Details

Understanding or obtaining the prevalence value prev:

  • Definition: prev is the (non-conditional) probability:

    prev = p(condition = TRUE)

    or the base rate (or baseline probability) of the condition's occurrence.

  • In terms of frequencies, prev is the ratio of cond.true (i.e., hi + mi) divided by N (i.e., hi + mi + fa + cr):

    prev = cond.true/N = (hi + mi)/(hi + mi + fa + cr)

  • Perspective: prev classifies a population of N individuals by condition (prev = cond.true/N).

    prev is the "by condition" counterpart to ppod (which adopts a "by decision" perspective).

  • Alternative names: base rate of condition, proportion affected, rate of condition = TRUE cases

    prev is often distinguished from the incidence rate (i.e., the rate of new cases within a certain time period).

  • Dependencies: prev is a feature of the population and condition, but independent of the decision process or diagnostic procedure.

    The value of prev does not depend on features of the decision process or diagnostic procedure. However, prev must be taken into account when computing the conditional probabilities sens, mirt, spec, fart, PPV, and NPV (as they partly depend on prev).

References

Consult Wikipedia for additional information.

See Also

num contains basic numeric variables; init_num initializes basic numeric variables; is_prob verifies probability inputs; comp_prob computes derived probabilities; comp_freq computes natural frequencies from probabilities

Other probabilities: FDR, FOR, NPV, PPV, fart, mirt, ppod, sens, spec

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

Examples

Run this code
# NOT RUN {
prev <- .10     # => sets a prevalence value of 10%
prev <- 10/100  # => (condition = TRUE) for 10 out of 100 individuals
is_prob(prev)   # => TRUE (as prev is a probability)

# }

Run the code above in your browser using DataLab