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

Description Usage Format Details References See Also Examples

Description

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

Usage

1

Format

An object of class numeric of length 1.

Details

Understanding or obtaining the prevalence value prev:

References

Consult Wikipedia for additional information.

See Also

prob contains current probability information; num contains basic numeric variables; init_num initializes basic numeric variables; comp_prob computes derived probabilities; comp_freq computes natural frequencies from probabilities; is_prob verifies probabilities.

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

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

Examples

1
2
3
prev <- .10     # sets a prevalence value of 10%
prev <- 10/100  # (condition = TRUE) for 10 out of 100 individuals
is_prob(prev)   # TRUE

riskyr documentation built on Jan. 3, 2019, 1:06 a.m.