prob
is a list of named numeric variables
containing 3 essential (1 non-conditional and 2 conditional) probabilities
and 7 derived (1 non-conditional and 6 conditional) probabilities:
prob
An object of class list
of length 10.
the condition's prevalence prev
(i.e., the probability of the condition being TRUE
):
prev = cond.true/N
.
the decision's sensitivity sens
(i.e., the conditional probability of a positive decision
provided that the condition is TRUE
).
the decision's miss rate mirt
(i.e., the conditional probability of a negative decision
provided that the condition is TRUE
).
the decision's specificity spec
(i.e., the conditional probability
of a negative decision provided that the condition is FALSE
).
the decision's false alarm rate fart
(i.e., the conditional probability
of a positive decision provided that the condition is FALSE
).
the proportion (baseline probability or rate)
of the decision being positive ppod
(but not necessarily true):
ppod = dec.pos/N
.
the decision's positive predictive value PPV
(i.e., the conditional probability of the condition being TRUE
provided that the decision is positive).
the decision's false detection (or false discovery) rate FDR
(i.e., the conditional probability of the condition being FALSE
provided that the decision is positive).
the decision's negative predictive value NPV
(i.e., the conditional probability of the condition being FALSE
provided that the decision is negative).
the decision's false omission rate FOR
(i.e., the conditional probability of the condition being TRUE
provided that the decision is negative).
These probabilities are computed from basic probabilities
(contained in num
) and computed by using
comp_prob
.
The list prob
is the probability counterpart
to the list containing frequency information freq
.
Note that inputs of extreme probabilities (of 0 or 1)
may yield unexpected values (e.g., an NPV
value of NaN when is_extreme_prob_set
evaluates to TRUE
).
num
contains basic numeric parameters;
init_num
initializes basic numeric parameters;
txt
contains current text information;
init_txt
initializes text information;
pal
contains current color information;
init_pal
initializes color information;
freq
contains current frequency information;
comp_freq
computes current frequency information;
prob
contains current probability information;
comp_prob
computes current probability information.
Other lists containing current scenario information: accu
,
freq
, num
, pal
,
txt
# NOT RUN {
prob <- comp_prob() # => initialize prob to default parameters
prob # => show current values
length(prob) # => 8
# }
Run the code above in your browser using DataLab