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.


papaja documentation built on Oct. 30, 2024, 9:09 a.m.