View source: R/bid_anticipate.R
bid_anticipate | R Documentation |
This function documents the anticipated user behavior by listing bias mitigation strategies related to anchoring, framing, confirmation bias, etc. It also supports adding interaction hints and visual feedback elements.
bid_anticipate(
previous_stage,
bias_mitigations = NULL,
include_accessibility = TRUE,
...
)
previous_stage |
A tibble or list output from an earlier BID stage function. |
bias_mitigations |
A named list of bias mitigation strategies. If NULL, the function will suggest bias mitigations based on information from previous stages. |
include_accessibility |
Logical indicating whether to include accessibility mitigations. Default is TRUE. |
... |
Additional parameters. If 'interaction_principles' is provided, it will be ignored with a warning. |
A tibble containing the documented information for the "Anticipate" stage.
structure_info <- bid_structure(
bid_interpret(
bid_notice(
"Issue with dropdown menus",
evidence = "User testing indicated delays"
),
central_question = "How can we improve selection efficiency?",
data_story = list(
hook = "Too many options",
context = "Excessive choices",
tension = "User frustration",
resolution = "Simplify menu"
)
),
concepts = c("principle_of_proximity", "default_effect")
)
# Basic usage
bid_anticipate(
previous_stage = structure_info,
bias_mitigations = list(
anchoring = "Use context-aware references",
framing = "Toggle between positive and negative framing"
)
)
# Let the function suggest bias mitigations based on previous stages
bid_anticipate(
previous_stage = structure_info
)
# with accessibility included (default)
bid_anticipate(
previous_stage = structure_info,
bias_mitigations = list(
anchoring = "Use context-aware references",
framing = "Toggle between positive and negative framing"
),
include_accessibility = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.