compareIntervals: Plot fitted intervals for each expert

Description Usage Arguments Examples

View source: R/compareExperts.R

Description

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

Usage

1
2
3
4
5
6
7
8
compareIntervals(
  fit,
  interval = 0.95,
  dist = "best",
  fs = 12,
  xlab = "x",
  ylab = "expert"
)

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.

xlab

A string or expression giving the x-axis label.

ylab

A string or expression giving the y-axis label.

Examples

1
2
3
4
5
6
7
## 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)

OakleyJ/SHELF documentation built on Feb. 14, 2020, 8:17 a.m.