Skip to content

heaping

0.2.0

Correction of Heaping on Individual Level

0packages depend
1.2Kdownloads / year
87.9%test coverage
13/13checks pass

Overview

About
Maintained by Matthias TemplFirst published 2026-02-092 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, 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

CRAN checks
13OK
Slowest check: 2.8 min · r-devel-linux-x86_64-fedora-clang
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation signals are not tracked yet for this package.

Downloads

1.2K
CRAN downloads in the past year
Rank #20,918 · ~3/day · ~97/mo
heaping
Daily download trend is not available in this view yet.
22430 days
55890 days
1.2K1 year
Compare downloads with other packages →
Also on30 r2u35 autocran

Repository

Repository
0Stars
0Forks
0Open issues
0Open PRs
0Releases
License GPL-3.0 · Last activity 2026-07-13

Repository practices

Upstream repositoryBeta

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.

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

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

Nothing depends on this yet.

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (1)
Contributor
Package Timeline

2 releases. R releases are shown for context.

  • 0.2.0Latest
    2026-07-13 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0
    2026-03-10
  • R
    R 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
Report a problem with this page →