Learn R Programming

SHELF (version 1.2.0)

compareIntervals: Plot fitted intervals for each expert

Description

Following elicitation of distributions from individual experts, plot fitted probability intervals for each expert.

Usage

compareIntervals(fit, interval = 0.95, dist = "best", fs = 12)

Arguments

fit
An object of class elicitation
interval
The probability p for each interval (i.e. the fitted probability for each expert that the displayed interval contains the uncertain quantity will be p)
dist
The distribution fitted to each expert's probabilities. Options are "normal", "t", "gamma", "lognormal", "logt","beta", and "best" (for best fitting). Can be a vector if different distributions are desired for each expert.
fs
font size used in the plot.

Examples

Run this code

## Not run: 
# v <- matrix(c(30, 40, 50, 20, 25, 35, 40, 50, 60, 35, 40, 50), 3, 4)
# p <- c(0.25, 0.5, 0.75)
# myfit <- fitdist(vals = v, probs = p, lower = 0, upper = 100)
# compareIntervals(myfit, interval = 0.5)
# ## End(Not run)

Run the code above in your browser using DataLab