Provides methods for correcting heaping (digit preference) in survey data at the individual record level. Age heaping, where respondents disproportionately report ages ending in 0 or 5, is a common phenomenon that can distort demographic analyses. Unlike traditional smoothing methods that only correct aggregated statistics, this package corrects individual values by replacing a calculated proportion of heaped observations with draws from fitted truncated distributions (log-normal, normal, or uniform). Supports 5-year and 10-year heaping patterns, single heap correction, and optional model-based adjustment to preserve covariate relationships.
Package details |
|
|---|---|
| Author | Matthias Templ [aut, cre] (ORCID: <https://orcid.org/0000-0002-8638-5276>), Bernhard Meindl [ctb] |
| Maintainer | Matthias Templ <matthias.templ@gmail.com> |
| License | GPL (>= 2) |
| Version | 0.1.0 |
| URL | https://github.com/matthias-da/heaping |
| Package repository | View on CRAN |
| Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.