Learn R Programming

SHELF (version 1.2.0)

roulette: Elicit one set of probabilities using the roulette method.

Description

Produces a graphics window with the roulette grid. The user clicks in the window to allocate 'probs' to 'bins'. The elicited probability inside each bin is the proportion of probs in each bin.

Usage

roulette(lower = 0, upper = 100, gridheight = 10, nbins = 10, round.end = T)

Arguments

lower
The lower limit on the x-axis of the roulette grid.
upper
The upper limit on the x-axis of the roulette grid.
gridheight
The maximum number of probs that can be allocated to a single bin.
nbins
The number of equally sized bins drawn between Lo and Up.
round.end
If set to TRUE, empty bins and the uppermost non-empty bin will be ignored. For example, with 20 probs in total, if the uppermost non-empty bin is [70,80] and contains 1 prob, setting round.end = FALSE will result in an elicited probability P(X>80)=0, but setting round.end = TRUE will remove this judgement, instead only having P(X>70)=0.05.

Value

A list, with outputs A list, with outputs

Examples

Run this code

## Not run: 
# x <- roulette(lower = 0, upper = 100)
# # Then allocate probs to bins and click "Finish"
# 
# # To fit distributions and see the results
# myfit <- fitdist(vals = x$v, probs = x$p, lower = 0, upper = 100)
# plotfit(myfit)
# ## End(Not run)

Run the code above in your browser using DataLab