txt
is initialized to a list of named elements
to define all titles and labels corresponding to the current scenario
and used throughout the riskyr
package.
txt
An object of class list
of length 16.
All textual elements that specify titles and details of the current scenario
are stored as named elements (of type character) in a list txt
.
To change an element, assign a new character object to an existing name.
txt
currently contains the following text labels:
scen.lbl
The current scenario title (sometimes in Title Caps).
scen.txt
A longer text description of the current scenario
(which may extend over several lines).
scen.src
The source information for the current scenario.
scen.apa
The source information in APA format.
scen.lng
The language of the current scenario (as character code).
Options: "en"
...English, "de"
... German.
popu.lbl
A brief description of the current target population popu
or sample.
cond.lbl
A name for the condition or feature (e.g., some disease) currently considered.
cond.true.lbl
A label for the presence of the current condition
or cond.true
cases (the condition's true state of TRUE).
cond.false.lbl
A label for the absence of the current condition
or cond.false
cases (the condition's true state of FALSE).
dec.lbl
A name for the decision or judgment (e.g., some diagnostic test) currently made.
dec.pos.lbl
A label for positive decisions
or dec.pos
cases (e.g., predicting the presence of the condition).
dec.neg.lbl
A label for negative decisions
or dec.neg
cases (e.g., predicting the absence of the condition).
hi.lbl
A label for hits or true positives hi
(i.e., correct decisions of the presence of the condition, when the condition is actually present).
mi.lbl
A label for misses or false negatives mi
(i.e., incorrect decisions of the absence of the condition when the condition is actually present).
fa.lbl
A label for false alarms or false positives fa
(i.e., incorrect decisions of the presence of the condition when the condition is actually absent).
cr.lbl
A label for correct rejections or true negatives cr
(i.e., a correct decision of the absence of the condition, when the condition is actually absent).
init_txt
initializes text information;
num
contains basic numeric parameters;
init_num
initializes basic numeric parameters;
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
,
prob
# NOT RUN {
txt # => show all current names and elements
txt$scen.lbl # => show the current scenario label (e.g., used in plot titles)
txt$scen.lbl <- "My favorite example" # => set a new scenario title
# }
Run the code above in your browser using DataLab