Learn R Programming

hdrcde: Highest Density Regions and Conditional Density Estimation

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.

Copy Link

Version

Install

install.packages('hdrcde')

Monthly Downloads

14,498

Version

3.4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 18th, 2021

Functions in hdrcde (3.4)

BoxCox

Box Cox Transformation
hdr.den

Density plot with Highest Density Regions
lane2

Speed-Flow data for Californian Freeway
shades

Shades
plot.hdrconf

Plot HDRs with confidence intervals
modalreg

Nonparametric Multimodal Regression
plot.cde

Plots conditional densities
maxtemp

Daily maximum temperatures in Melbourne, Australia
hdrconf

HDRs with confidence intervals
hdrscatterplot

Scatterplot showing bivariate highest density regions
hdr.cde

Calculate highest density regions continously over some conditioned variable.
hdrbw

Highest Density Region Bandwidth
alpha

Alpha
hdr.2d

Bivariate Highest Density Regions
cde

Conditional Density Estimation
cde.bandwidths

Bandwidth calculation for conditional density estimation
hdr

Highest Density Regions
hdr.boxplot

Highest Density Region Boxplots