heaping
0.2.0Correction of Heaping on Individual Level
Overview
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, survey weights, and optional covariate-conditional (model-based) correction via quantile regression forests or linear models to preserve relationships. A multiple-imputation wrapper repeats the correction to propagate the added uncertainty into downstream inference.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
Documentation signals are not tracked yet for this package.
Downloads
Repository
Repository practices
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/matthias-da/heaping on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
People & History
2 releases. R releases are shown for context.
- 0.2.0Latest
- RR 4.6.0 released · 2026-04-24
- 0.1.02026-03-10
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-02-09
- Total releases
- 2 / 1 yrs
- License
- GPL (>= 2) OSI
- Download size
- 457 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet