Simulate the highest density interval (HDI) width for a beta posterior.
probOfPosteriorCIwidth.Rd
Simulate the highest density interval (HDI) width for a beta posterior.
Usage
probOfPosteriorCIwidth(
genPriorMean,
genPriorN,
sampleSize,
audPriorMean = 0.5,
audPriorN = 2,
CImass = 0.95
)
Arguments
- genPriorMean
The mean of the generating distribution.
- genPriorN
The sum of the generating distributions shape parameters.
- sampleSize
The number of samples.
- audPriorMean
The mean of the prior for analysis.
- audPriorN
The sum of the prior's shape parameters or sample size on which the prior is based.
- CImass
The desired mass of the highest density interval (HDI).