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,
quiet = NULL,
...
)
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. |
quiet |
Logical indicating whether to suppress informational messages. If NULL, uses getOption("bidux.quiet", FALSE). |
... |
Additional parameters. If 'interaction_principles' is provided, it will be ignored with a warning. |
A tibble containing the documented information for the "Anticipate" stage.
interpret_stage <- bid_interpret(
central_question = "How can we improve selection efficiency?",
data_story = list(
hook = "Too many options",
context = "Excessive choices",
tension = "User frustration",
resolution = "Simplify menu"
)
)
notice_stage <- bid_notice(
previous_stage = interpret_stage,
problem = "Issue with dropdown menus",
evidence = "User testing indicated delays"
)
structure_info <- bid_structure(previous_stage = notice_stage)
# Let the function suggest bias mitigations based on previous stages
bid_anticipate(previous_stage = structure_info)
# with accessibility included (default) and custom bias mitigations
anticipate_result <- bid_anticipate(
previous_stage = structure_info,
bias_mitigations = list(
anchoring = "Use context-aware references",
framing = "Toggle between positive and negative framing"
),
include_accessibility = TRUE
)
summary(anticipate_result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.