R/comp_prob_freq.R
comp_prev.Rd
comp_prev
computes a condition's prevalence value prev
(or baseline probability) from 4 essential frequencies
(hi
, mi
, fa
, cr
).
comp_prev(hi = freq$hi, mi = freq$mi, fa = freq$fa, cr = freq$cr)
A condition's prevalence value prev
is
the probability of the condition being TRUE
.
The probability prev
can be computed from frequencies
as the 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)
num
contains basic numeric parameters;
init_num
initializes basic numeric parameters;
prob
contains current probability information;
comp_prob
computes current probability information;
freq
contains current frequency information;
comp_freq
computes current frequency information;
is_prob
verifies probability inputs;
is_freq
verifies frequency inputs.