scdensity: Shape-Constrained Kernel Density Estimation

Implements methods for obtaining kernel density estimates subject to a variety of shape constraints (unimodality, bimodality, symmetry, tail monotonicity, bounds, and constraints on the number of inflection points). Enforcing constraints can eliminate unwanted waves or kinks in the estimate, which improves its subjective appearance and can also improve statistical performance. The main function scdensity() is very similar to the density() function in 'stats', allowing shape-restricted estimates to be obtained with little effort. The methods implemented in this package are described in Wolters and Braun (2017) <doi:10.1080/03610918.2017.1288247>, Wolters (2012) <doi:10.18637/jss.v047.i06>, and Hall and Huang (2002) <>. See the scdensity() help for for full citations.

Version: 1.0.2
Depends: R (≥ 3.3.0)
Imports: quadprog, lpSolve
Suggests: testthat
Published: 2018-01-30
DOI: 10.32614/CRAN.package.scdensity
Author: Mark A. Wolters ORCID iD [aut, cre]
Maintainer: Mark A. Wolters <mark at>
License: GPL-2
NeedsCompilation: no
CRAN checks: scdensity results


Reference manual: scdensity.pdf


Package source: scdensity_1.0.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): scdensity_1.0.2.tgz, r-oldrel (arm64): scdensity_1.0.2.tgz, r-release (x86_64): scdensity_1.0.2.tgz, r-oldrel (x86_64): scdensity_1.0.2.tgz


Please use the canonical form to link to this page.