Skip to content

Kernelheaping

Kernel Density Estimation for Heaped and Rounded Data

v2.3.0 · Jan 26, 2022 · GPL-2 | GPL-3

Description

In self-reported or anonymised data the user often encounters heaped data, i.e. data which are rounded (to a possibly different degree of coarseness). While this is mostly a minor problem in parametric density estimation the bias can be very large for non-parametric methods such as kernel density estimation. This package implements a partly Bayesian algorithm treating the true unknown values as additional parameters and estimates the rounding parameters to give a corrected kernel density estimate. It supports various standard bandwidth selection methods. Varying rounding probabilities (depending on the true value) and asymmetric rounding is estimable as well: Gross, M. and Rendtel, U. (2016) (<doi:10.1093/jssam/smw011>). Additionally, bivariate non-parametric density estimation for rounded data, Gross, M. et al. (2016) (<doi:10.1111/rssa.12179>), as well as data aggregated on areas is supported.

Downloads

CRAN

378

Last 30 days

10563rd

1.1K

Last 90 days

3.9K

Last year

Trend: +61.5% (30d vs prior 30d)

r2u CRAN

9

Last 30 days

24

Last 90 days

100

Last year

Trend: -35.7% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘sparr’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies MASS ks sparr sp plyr dplyr fastmatch fitdistrplus GB2 magrittr mvtnorm smicd Kernelheaping

Version History

14 tracked
new 2.3.0 Mar 10, 2026
updated 2.3.0 ← 2.2.8 diff Jan 25, 2022
updated 2.2.8 ← 2.2.2 diff May 10, 2021
updated 2.2.2 ← 2.2.1 diff Feb 20, 2020
updated 2.2.1 ← 2.2.0 diff Aug 1, 2019
updated 2.2.0 ← 2.1.8 diff Jul 30, 2018
updated 2.1.8 ← 1.6 diff Oct 9, 2017
updated 1.6 ← 1.5 diff Apr 15, 2016
updated 1.5 ← 1.2 diff Mar 20, 2016
updated 1.2 ← 1.0 diff Dec 6, 2015
updated 1.0 ← 0.9 diff Jul 30, 2015
updated 0.9 ← 0.5 diff Jun 12, 2015
updated 0.5 ← 0.2 diff Apr 26, 2015
new 0.2 Jan 26, 2015