comp_prev function

Compute the condition's prevalence (baseline probability) from frequencies.