Skip to content

heaping

0.1.0

Correction of Heaping on Individual Level

0packages depend
1.1Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Matthias TemplFirst published 2026-02-091 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Code health
Yes
Tests · ratio 0.44
not tracked
Coverage
100%
Documentation · exports
Yes
Vignettes
No
README
3
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

1.1K
CRAN downloads in the past year
Rank #22,163 · ~3/day · ~88/mo
heaping
Daily download trend is not available in this view yet.
Compare downloads with other packages →
26830 days
53690 days
1.1K1 year
Also on30 r2u12 autocran
Source & community
GitHub ↗

Repository stars, issues, and contributor activity are not tracked yet.

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
indirect (not tracked)

Nothing depends on this yet.

Code & Tests

Code Composition
R 2,917 (63%)Rd 1,206 (26%)Vignettes 529 (11%)

Test coverage

Line coverage

Expression

Tests / Examples

Functions

17 12 exported

Complexity

10.4 avg / 45 max

Call network

17 nodes / 11 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (2)
Maintainer (1)
Author, Maintainer
Contributors (1)
Contributor
Release timeline

1 releases. Pick two to compare their code metrics; R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2026-03-10 · current release

Package metadata

First published
2026-02-09
Total releases
1 / 1 yrs
License
GPL (>= 2) OSI
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet