Learn R Programming

Kernelheaping (version 2.3.0)

Kernel Density Estimation for Heaped and Rounded Data

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) (). Additionally, bivariate non-parametric density estimation for rounded data, Gross, M. et al. (2016) (), as well as data aggregated on areas is supported.

Copy Link

Version

Install

install.packages('Kernelheaping')

Monthly Downloads

356

Version

2.3.0

License

GPL-2 | GPL-3

Maintainer

Last Published

January 26th, 2022

Functions in Kernelheaping (2.3.0)

toOtherShape

Transfer observations to other shape
tracePlots

Plots some trace plots for the rounding, bias and acceleration (beta) parameters
students

Student0405
summary.Kernelheaping

Prints some descriptive statistics (means and quantiles) for the estimated rounding, bias and acceleration (beta) parameters
simSummary.Kernelheaping

Simulation Summary
sim.Kernelheaping

Simulation of heaping correction method
plot.bivrounding

Plot Kernel density estimate of heaped data naively and corrected by partly bayesian model
plot.Kernelheaping

Plot Kernel density estimate of heaped data naively and corrected by partly bayesian model
dshapebivr

Bivariate Kernel density estimation for data classified in polygons or shapes
dbivr

Bivariate kernel density estimation for rounded data
Kernelheaping

Kernel Density Estimation for Heaped Data
dheaping

Kernel density estimation for heaped data
dshapebivrProp

Bivariate Kernel density estimation for data classified in polygons or shapes
dclass

Kernel density estimation for classified data
dshape3dProp

3d Kernel density estimation for data classified in polygons or shapes
createSim.Kernelheaping

Create heaped data for Simulation