ElicitBeta: Parameterization of a Beta distribution

Description Usage Arguments Details Value Examples

Description

Parameterization of a Beta distribution from elicited mode and quantiles.

Usage

1
2
ElicitBeta(mode, confidence, maximum = NULL, minimum = NULL,
  summary = FALSE, quantiles = c(0.025, 0.25, 0.5, 0.75, 0.975))

Arguments

mode

scalar representing the elicited mode of the variable of interest. Must be a number between 0 and 1.

confidence

scalar representing the the level of confidence on the definition of maximum or minimum. Must be a number between 0 and 1.

maximum

scalar representing the elicited maximum value of the variable of interest. Must be a number between 0 and 1.

minimum

scalar representing the elicited minimum value of the variable of interest. Must be a number between 0 and 1.

summary

logical. If FALSE (default), only the parameters a (shape1) and b (shape2) are returned. If TRUE, the mean the variance and the quantiles are also returned.

quantiles

numeric vector with the quantiles to be computed if summary == TRUE. The quantiles must be numbers between 0 and 1.

Details

The parameters a and b are calculated using the algorithm implemented in the epi.betabuster function of the epiR package.

Value

If summary == FALSE, a numeric vector with the prameters a and b. If summary == TRUE, a list with the parameters a and b, as well as summary statistics of the distribution.

Examples

1
2
ElicitBeta(mode = 0.3, maximum = 0.5, confidence = 0.95, summary = FALSE)
ElicitBeta(mode = 0.99, minimum = 0.97, confidence = 0.95, summary = TRUE)

leb-fmvz-usp/ptb documentation built on May 30, 2019, 3:43 p.m.