View source: R/comp_prob_freq.R
comp_prev | R Documentation |
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)
hi |
The number of hits |
mi |
The number of misses |
fa |
The number of false alarms |
cr |
The number of correct rejections |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.