Learn R Programming

lestat (version 1.9)

credibilityinterval: Compute Credibility Interval for a Univariate Distribution

Description

Given a univariate continuous distribution, a credibility interval is computed. Note that the interval is constructed so that there is an equal probability to be above or below the interval.

Usage

credibilityinterval(object, prob = 0.95)

Arguments

object

A univariate continuous distribution.

prob

The probability inside the credibility interval.

Value

A vector of length two, specifying the interval.

See Also

p.value

Examples

Run this code
# NOT RUN {
credibilityinterval(normal())
# }

Run the code above in your browser using DataLab