Learn R Programming

⚠️There's a newer version (2.3.0) of this package.Take me there.

Kernelheaping (version 1.5)

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. Additionally, bivariate non-parametric density estimation for rounded data is supported.

Copy Link

Version

Install

install.packages('Kernelheaping')

Monthly Downloads

277

Version

1.5

License

GPL-2 | GPL-3

Maintainer

Marcus Gross

Last Published

March 21st, 2016

Functions in Kernelheaping (1.5)

dclass

Kernel density estimation for classified data
dheaping

Kernel density estimation for heaped data
tracePlots

Plots some trace plots for the rounding, bias and acceleration (beta) parameters
plot.Kernelheaping

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

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

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

Student0405
simSummary.Kernelheaping

Simulation Summary
dbivr

Bivariate kernel density estimation for rounded data
createSim.Kernelheaping

Create heaped data for Simulation
sim.Kernelheaping

Simulation of heaping correction method
Kernelheaping

Kernel Density Estimation for Heaped Data
dshapebivr

Bivariate Kernel density estimation for data classified in polygons or shapes