Ask a question with ordered score levels
Arguments
- instructions
A string: what to score.
- levels
A named character vector with at least 2 unique names, in order from low to high. Each name is an allowed score and each value describes it. Two names that give the same probability column in the output of
decide()are refused (seequestion_choice()).
See also
question_noul() for true or false, question_choice() for unordered choices, and decide() to ask the question.
Other questions:
question_choice(),
question_noul()
Examples
question_score(
"How severe is the defect?",
c(none = "No defect.", minor = "Small defect.", major = "Large defect.")
)
#> <decisions::question_score> How severe is the defect?
#> * none: No defect.
#> * minor: Small defect.
#> * major: Large defect.