Creates a named set of response options that can be referenced by one or
more items. Defining choices once and referencing them by id keeps the
instrument consistent and reduces the risk of label mismatches across items
that share the same response format.
Arguments
- id
Character. A unique identifier for this choice set. Referenced in the
choice_setargument ofsf_item().- values
Character or numeric vector. The stored values corresponding to each response option. Must have the same length as
labels.- labels
Character vector. The display labels shown to respondents. Must have the same length as
values.- allow_other
Logical. Whether to append an open-text "Other" option at the end of the choice list. Defaults to
FALSE.- randomise
Logical. Whether to randomise the display order of options at render time. Defaults to
FALSE.