Skip to contents

Ask a question with ordered score levels

Usage

question_score(instructions, 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 (see question_choice()).

Value

A question_score object with the properties instructions and answers.

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.