The R package hdrcde provides tools for computing highest density regions in one and two dimensions, kernel estimates of univariate density functions conditional on one covariate, and multimodal regression.

This package implements the methods described in the following papers.

Installation

You can install the stable version on R CRAN.

install.packages('hdrcde', dependencies = TRUE)

You can install the development version from Github

# install.packages("devtools")
devtools::install_github("robjhyndman/hdrcde")

License

This package is free and open source software, licensed under GPL 3.