Walks the user through a series of simple choice questions to estimate how
they weigh uncertain vs certain outcomes. No economics or maths knowledge
required. Returns a risk_preference object that can be used directly
in VOI calculations.
Arguments
- model
Character:
"CRRA"(default) or"CARA". The shape of the utility curve to fit.- outcome_name
Character. What is being measured (e.g.
"frogs").- val_min
Numeric. The worst plausible outcome.
- val_max
Numeric. The best plausible outcome.
- maximize
Logical.
TRUEif higher values are better (default).- is_integer
Logical.
TRUEif outcomes are whole numbers.- max_questions
Integer. Maximum number of choice questions (default 12).
- grid_size
Integer. Resolution of the parameter grid (default 800).
- plot_result
Logical. Whether to plot the posterior and utility curve after elicitation (default
TRUE).- input_source
Function used to read answers; defaults to
base::readline. Override for automated testing.