hdr: Compute highest density region

hdrR Documentation

Compute highest density region

Usage

hdr(x, ...)

## Default S3 method:
hdr(value, prob, int = NULL)

Arguments

value

A numeric vector of values for which the probability function gives probabilities.

prob

A numeric vector of probabilities of the same length as value

int

A numeric vector describing the size of the desired range, as a percentage. The default, c(95, 99), will give the intervals that account for 95\

Computes the interval holding the desired probability density for a probability distribution. This is a generic function. The default method takes a value and a prob vector and finds the range(es) within value holding the probability density defined by int.


rmvegasm/schron documentation built on June 3, 2022, 7:14 a.m.