findHDI: Find the highest density interval(s)

Description Usage Arguments Value

View source: R/studentMetaMean.R

Description

Find the highest density interval(s)

Usage

1
2
findHDI(l, p = 0.95, stepsize = 0.01, density_resolution = 0.001,
  drop = T)

Arguments

l

a result list returned by studentMetaMean

p

a single percentage or a vector of percentages for which to return the HDI

stepsize

size of steps along the x axis

density_resolution

cutoff for sampling the distribution, given as the fraction of the density at the mean

drop

return a vector instead of a matrix for a single target percentage

Value

Either a vector (low, high) or a matrix with each row containing a (low, high) pair


mkuhn/StudentMetaMean documentation built on May 23, 2019, 2:03 a.m.