Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

discint

Highest probability interval for a discrete distribution


Description

Computes a highest probability interval for a discrete probability distribution

Usage

discint(dist, prob)

Arguments

dist

probability distribution written as a matrix where the first column contain the values and the second column the probabilities

prob

probability content of interest

Value

prob

exact probability content of interval

set

set of values of the probability interval

Author(s)

Jim Albert

Examples

x=0:10
probs=dbinom(x,size=10,prob=.3)
dist=cbind(x,probs)
pcontent=.8
discint(dist,pcontent)

LearnBayes

Functions for Learning Bayesian Inference

v2.15.1
GPL (>= 2)
Authors
Jim Albert
Initial release
2018-03-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.