HDIofICDF: Title

Description Usage Arguments Value Examples

Description

Title

Usage

1
HDIofICDF(ICDFname, credMass = 0.95, tol = 1e-08, ...)

Arguments

ICDFname

R's name for the inverse cumulative density function of the distribution.

credMass

the desired mass of the HDI region.

tol

tol is passed to R's optimize function.

Value

Highest density iterval (HDI) limits in a vector.

Examples

1
2
3
4
5
#For determining HDI of a beta(30,12) distribution, type
  HDIofICDF( qbeta , shape1 = 30 , shape2 = 12 )
  #Notice that the parameters of the ICDFname must be explicitly named;
  #e.g., HDIofICDF( qbeta , 30 , 12 ) does not work.
#Adapted and corrected from Greg Snow's TeachingDemos package.

kyusque/DBDA2E-utilities documentation built on May 5, 2019, 1:37 p.m.