riskyr (version 0.2.0)

txt: Basic text elements.

Description

txt is initialized to a list of named elements to define basic scenario titles and labels.

Usage

txt

Arguments

Format

An object of class list of length 21.

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 num and init_num) are integral parts of a riskyr scenario.

  • By contrast, basic color information (see pal and init_pal) is not an integral part, but independently defined.

  • The names of probabilities (see prob) are currently not an integral part of txt and riskyr scenarios (but defined in prob_lbl_def and label_prob).

txt currently contains the following text labels:

  1. scen_lbl The current scenario title (sometimes in Title Caps).

  2. scen_txt A longer text description of the current scenario (which may extend over several lines).

  3. scen_src The source information for the current scenario.

  4. scen_apa The source information in APA format.

  5. scen_lng The language of the current scenario (as character code). Options: "en": English, "de": German.

  6. popu_lbl A general name describing the current population.

  7. N_lbl A short label for the current population popu or sample.

  8. cond_lbl A general name for the condition dimension, or the feature (e.g., some disease) currently considered.

  9. cond_true_lbl A short label for the presence of the current condition or cond_true cases (the condition's true state of being TRUE).

  10. cond_false_lbl A short label for the absence of the current condition or cond_false cases (the condition's true state of being FALSE).

  11. dec_lbl A general name for the decision dimension, or the judgment (e.g., some diagnostic test) currently made.

  12. dec_pos_lbl A short label for positive decisions or dec_pos cases (e.g., predicting the presence of the condition).

  13. dec_neg_lbl A short label for negative decisions or dec_neg cases (e.g., predicting the absence of the condition).

  14. acc_lbl A general name for the accuracy dimension, or the correspondence between the condition currently considered and the decision judgment currently made.

  15. dec_cor_lbl A short label for correct and accurate decisions or dec_cor cases (accurate predictions).

  16. dec_err_lbl A short label for incorrect decisions or dec_err cases (erroneous predictions).

  17. sdt_lbl A general name for all 4 cases/categories/cells of the 2x2 contingency table (e.g., condition x decision, using SDT).

  18. hi_lbl A short label for hits or true positives hi/TP cases (i.e., correct decisions of the presence of the condition, when the condition is actually present).

  19. mi_lbl A short label for misses or false negatives mi/FN cases (i.e., incorrect decisions of the absence of the condition when the condition is actually present).

  20. fa_lbl A short label for false alarms or false positives fa/FP cases (i.e., incorrect decisions of the presence of the condition when the condition is actually absent).

  21. cr_lbl A short label for correct rejections or true negatives cr/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_bw, pal_kn, pal_mbw, pal_mod, pal_org, pal_rgb, pal_vir, pal, prob, txt_TF, txt_org

Examples

Run this code
# 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 example"  # Set a new scenario title

# }

Run the code above in your browser using DataCamp Workspace