HDIofICDF: Compute Highest Density Interval limits

View source: R/HDIofICDF.R

HDIofICDFR Documentation

Compute Highest Density Interval limits

Description

Compute Highest Density interval limits.

Usage

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

tolerance passed to R’s optimize function

Details

Code from J.K.Kruschke - Doing bayesian data analysis. Adapted and corrected from Greg Snow’s TeachingDemos package.

Value

HDI

Author(s)

JuG

Examples

#ICDFname must be explicitly named
HDIofICDF( qbeta , shape1 = 30 , shape2 = 12 )

#does not work
HDIofICDF( qbeta , 30 , 12 )


jgodet/utilitR documentation built on May 16, 2024, 12:01 p.m.