Learn R Programming

SHELF (version 1.2.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)

Arguments

d
A vector of parameters of the Dirichlet distribution
quantiles
The desired quantiles for feedback
sf
The number of significant figures displayed

Value

Quantiles for each marginal distribution #'

Examples

Run this code
## Not run: 
# feedbackDirichlet(d = c(20, 10, 5),
#                   quantiles = c(0.1, 0.33, 0.66, 0.9))
# ## End(Not run)

Run the code above in your browser using DataLab