hd_int: Highest-Density Intervals

View source: R/calculations.R

hd_intR Documentation

Highest-Density Intervals

Description

Calculates the highest-density interval of a vector of values.

Usage

hd_int(x, level = 0.95)

Arguments

x

Numeric. A vector of observations.

level

Numeric. Defines the width of the interval. Defaults to 95% highest-density intervals.


crsh/papaja documentation built on Feb. 21, 2024, 6:11 p.m.