txt is initialized to a list of named elements
to define basic scenario titles and labels.
Details
All textual elements that specify generic labels and titles of riskyr scenarios
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.
The list txt is used throughout the riskyr package
unless a scenario defines scenario-specific text labels
(when using the riskyr function).
Note:
Basic text information and some numeric parameters (see
numandinit_num) are integral parts of ariskyrscenario.By contrast, basic color information (see
palandinit_pal) is not an integral part, but independently defined.The names of probabilities (see
prob) are currently not an integral part oftxtandriskyrscenarios (but defined inprob_lbl_defandlabel_prob).
txt currently contains the following text labels:
scen_lblThe current scenario title (sometimes in Title Caps).scen_txtA longer text description of the current scenario (which may extend over several lines).scen_srcThe source information for the current scenario.scen_apaThe source information in APA format.scen_lngThe language of the current scenario (as character code). Options:"en": English,"de": German.popu_lblA general name describing the current population.N_lblA short label for the current populationpopuor sample.cond_lblA general name for the condition dimension, or the feature (e.g., some disease) currently considered.cond_true_lblA short label for the presence of the current condition orcond_truecases (the condition's true state of being TRUE).cond_false_lblA short label for the absence of the current condition orcond_falsecases (the condition's true state of being FALSE).dec_lblA general name for the decision dimension, or the judgment (e.g., some diagnostic test) currently made.dec_pos_lblA short label for positive decisions ordec_poscases (e.g., predicting the presence of the condition).dec_neg_lblA short label for negative decisions ordec_negcases (e.g., predicting the absence of the condition).acc_lblA general name for the accuracy dimension, or the correspondence between the condition currently considered and the decision judgment currently made.dec_cor_lblA short label for correct and accurate decisions ordec_corcases (accurate predictions).dec_err_lblA short label for incorrect decisions ordec_errcases (erroneous predictions).sdt_lblA general name for all 4 cases/categories/cells of the 2x2 contingency table (e.g., condition x decision, using SDT).hi_lblA short label for hits or true positiveshi/TP cases (i.e., correct decisions of the presence of the condition, when the condition is actually present).mi_lblA short label for misses or false negativesmi/FN cases (i.e., incorrect decisions of the absence of the condition when the condition is actually present).fa_lblA short label for false alarms or false positivesfa/FP cases (i.e., incorrect decisions of the presence of the condition when the condition is actually absent).cr_lblA short label for correct rejections or true negativescr/TN cases (i.e., a correct decision of the absence of the condition, when the condition is actually absent).
See also
init_txt initializes text information;
riskyr initializes a riskyr scenario;
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,
pal_bw,
pal_bwp,
pal_kn,
pal_mbw,
pal_mod,
pal_org,
pal_rgb,
pal_unikn,
pal_vir,
prob,
txt_TF,
txt_org
Examples
txt # Show all current names and elements
#> $scen_lbl
#> [1] "Scenario"
#>
#> $scen_txt
#> [1] "Description of the current scenario in a short paragraph of text. This description may include several sentences."
#>
#> $scen_src
#> [1] "Source information"
#>
#> $scen_apa
#> [1] "Source information in APA format"
#>
#> $scen_lng
#> [1] "en/de"
#>
#> $popu_lbl
#> [1] "Population"
#>
#> $N_lbl
#> [1] "N"
#>
#> $cond_lbl
#> [1] "True condition"
#>
#> $cond_true_lbl
#> [1] "present"
#>
#> $cond_false_lbl
#> [1] "absent"
#>
#> $dec_lbl
#> [1] "Outcome"
#>
#> $dec_pos_lbl
#> [1] "positive"
#>
#> $dec_neg_lbl
#> [1] "negative"
#>
#> $acc_lbl
#> [1] "Accuracy"
#>
#> $dec_cor_lbl
#> [1] "correct"
#>
#> $dec_err_lbl
#> [1] "incorrect"
#>
#> $sdt_lbl
#> [1] "Cases"
#>
#> $hi_lbl
#> [1] "TP"
#>
#> $mi_lbl
#> [1] "FN"
#>
#> $fa_lbl
#> [1] "FP"
#>
#> $cr_lbl
#> [1] "TN"
#>
txt$scen_lbl # Show the current scenario label (e.g., used in plot titles)
#> [1] "Scenario"
txt$scen_lbl <- "My example" # Set a new scenario title
