Learn R Programming

SHELF (version 1.12.0)

feedbackDirichlet: Calculate quantiles for the marginal distributions of a Dirichlet distribution

Description

Given a (elicited) Dirichlet distribution, calculate quantiles for each marginal beta distribution corresponding to the elicited quantiles

Usage

feedbackDirichlet(d, quantiles = c(0.1, 0.9), sf = 2)

Value

Quantiles for each marginal distribution

Arguments

d

A vector of parameters of the Dirichlet distribution

quantiles

The desired quantiles for feedback

sf

The number of significant figures displayed

Author

Jeremy Oakley <j.oakley@sheffield.ac.uk>

Examples

Run this code
if (FALSE) {
feedbackDirichlet(d = c(20, 10, 5),
                  quantiles = c(0.1, 0.33, 0.66, 0.9))
}

Run the code above in your browser using DataLab