popu | R Documentation |
popu
is an R data frame that is computed
by comp_popu
from the current
frequency information (contained in freq
).
Each individual is represented as a row;
columns represent the individual's
condition (TRUE
or FALSE
),
a corresponding decision
(also encoded as TRUE
= positive or FALSE
= negative),
and its classification (i.e., its case or cell combination, in SDT terms), as
true positive (hit hi
),
false negative (miss mi
),
false positive (false alarm fa
), or
true negative (correct rejection cr
).
popu
An object of class NULL
of length 0.
#' popu
is initialized to NULL
and needs to be computed by calling comp_popu
with current parameter settings.
By default, comp_popu
uses the current information
contained in txt
to define text labels.
A visualization of the current population
popu
is provided by plot_icons
.
A data frame popu
containing N
rows (individual cases)
and 3 columns ("Truth", "Decision", "SDT"
)
encoded as ordered factors
(with 2, 2, and 4 levels, respectively).
the corresponding generating function comp_popu
;
read_popu
interprets a data frame as a riskyr scenario;
num
for basic numeric parameters;
freq
for current frequency information;
txt
for current text settings.
popu <- comp_popu() # => initializes popu with current values of freq and txt dim(popu) # => N x 3 head(popu) # => shows head of data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.