{
  "_id": "6acb6244fe5cc25786e8f178",
  "Package": "heaping",
  "Type": "Package",
  "Title": "Correction of Heaping on Individual Level",
  "Version": "0.2.0",
  "Authors@R": "c(\nperson(\"Matthias\", \"Templ\",\nemail = \"matthias.templ@gmail.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-8638-5276\")),\nperson(\"Bernhard\", \"Meindl\",\nrole = \"ctb\")\n)",
  "Description": "Provides methods for correcting heaping (digit preference)\nin survey data at the individual record level. Age heaping,\nwhere respondents disproportionately report ages ending in 0 or\n5, is a common phenomenon that can distort demographic\nanalyses. Unlike traditional smoothing methods that only\ncorrect aggregated statistics, this package corrects individual\nvalues by replacing a calculated proportion of heaped\nobservations with draws from fitted truncated distributions\n(log-normal, normal, or uniform). Supports 5-year and 10-year\nheaping patterns, single heap correction, survey weights, and\noptional covariate-conditional (model-based) correction via\nquantile regression forests or linear models to preserve\nrelationships. A multiple-imputation wrapper repeats the\ncorrection to propagate the added uncertainty into downstream\ninference.",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/matthias-da/heaping",
  "BugReports": "https://github.com/matthias-da/heaping/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "LazyDataCompression": "xz",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "Repository": "https://matthias-da.r-universe.dev",
  "Date/Publication": "2026-07-13 12:29:19 UTC",
  "RemoteUrl": "https://github.com/matthias-da/heaping",
  "RemoteRef": "HEAD",
  "RemoteSha": "6afaf903e25584d9ed53f8eb8778261cd900ec28",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-11 09:56:07 UTC",
    "User": "root"
  },
  "Author": "Matthias Templ [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-8638-5276>),\nBernhard Meindl [ctb]",
  "Maintainer": "Matthias Templ <matthias.templ@gmail.com>",
  "_user": "matthias-da",
  "_type": "src",
  "_file": "heaping_0.2.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/9b5edb97c0e937ae188b8287b662fc051e5bd08744c6e92ac185fc18e477e0e9",
  "_filesize": 2512503,
  "_sha256": "9b5edb97c0e937ae188b8287b662fc051e5bd08744c6e92ac185fc18e477e0e9",
  "_expires": "2027-01-19T10:17:38.000Z",
  "_created": "2026-10-11T09:56:07.000Z",
  "_published": "2026-10-11T10:17:40.479Z",
  "_buildurl": "https://github.com/r-universe/matthias-da/actions/runs/38129946292",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114442629683,
      "time": 166,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "11698788549"
    },
    {
      "job": 114442629637,
      "time": 179,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "11698137881"
    },
    {
      "job": 114442629721,
      "time": 114,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "11699181701"
    },
    {
      "job": 114442629706,
      "time": 117,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "11698449687"
    },
    {
      "job": 114442072378,
      "time": 192,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11699032951"
    },
    {
      "job": 114442629681,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11698053054"
    },
    {
      "job": 114442629655,
      "time": 104,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "11698107756"
    },
    {
      "job": 114442629688,
      "time": 105,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "11698858433"
    },
    {
      "job": 114442629678,
      "time": 105,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "11698862192"
    }
  ],
  "_upstream": "https://github.com/matthias-da/heaping",
  "_commit": {
    "id": "6afaf903e25584d9ed53f8eb8778261cd900ec28",
    "author": "Matthias Templ <matthias.templ@gmail.com>",
    "committer": "Matthias Templ <matthias.templ@gmail.com>",
    "message": "Prepare 0.2.0 CRAN submission: relabelling examples, cran-comments\n\nSwitch the three help-page examples (correctHeaps, correctHeapsMI,\ncorrectSingleHeap) from the retracted duplication mechanism to relabelling\n(misreporting a share of records to the nearest round age / target heap), so\nthe CRAN release matches the JSSAM manuscript's assumptions; regenerate man/.\nTest fixtures are deliberately untouched.\n\nAdd cran-comments.md (0.1.0 -> 0.2.0 summary, test environment, check result\n0E/0W/1N local time-server note, no reverse dependencies) and exclude it via\n.Rbuildignore.\n\nVerified: devtools::test() 168 PASS / 0 FAIL; R CMD build --resave-data\n--compact-vignettes=gs+qpdf -> heaping_0.2.0.tar.gz (463K, no paper/script\nleaks); R CMD check --as-cran: 0 errors, 0 warnings, 1 note (local\n\"unable to verify current time\" artifact).\n\nCo-Authored-By: Claude Fable 5 <noreply@anthropic.com>\nClaude-Session: https://claude.ai/code/session_015a3nG7efjjFcqUw5BcqeCd\n",
    "time": 1783945759
  },
  "_maintainer": {
    "name": "Matthias Templ",
    "email": "matthias.templ@gmail.com",
    "login": "matthias-da",
    "description": "Matthias Templ is a Professor at the University of Applied Sciences Northwestern Switzerland. \nInterest: imputation, anonymization",
    "uuid": 5263685,
    "orcid": "0000-0002-8638-5276"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "fitdistrplus",
      "role": "Imports"
    },
    {
      "package": "EnvStats",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "VIM",
      "role": "Suggests"
    },
    {
      "package": "ranger",
      "role": "Suggests"
    },
    {
      "package": "data.table",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "simPop",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "matthias-da",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-05",
      "n": 3
    },
    {
      "week": "2026-10",
      "n": 2
    },
    {
      "week": "2026-27",
      "n": 6
    },
    {
      "week": "2026-28",
      "n": 2
    },
    {
      "week": "2026-29",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "matthias-da",
      "count": 17,
      "uuid": 5263685
    }
  ],
  "_userbio": {
    "uuid": 5263685,
    "type": "user",
    "name": "Matthias Templ",
    "followers": 42,
    "description": "Matthias Templ is a Professor at the University of Applied Sciences Northwestern Switzerland. \r\nInterest: imputation, anonymization"
  },
  "_downloads": {
    "count": 263,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/heaping"
  },
  "_devurl": "https://github.com/matthias-da/heaping",
  "_searchresults": 8,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/heaping.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/matthias-da/heaping",
  "_realowner": "matthias-da",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-02-16"
    },
    {
      "version": "0.2.0",
      "date": "2026-07-13"
    }
  ],
  "_exports": [
    "bachi",
    "coale_li",
    "correctHeaps",
    "correctHeaps2",
    "correctHeapsMI",
    "correctSingleHeap",
    "heaping_indices",
    "jdanov",
    "kannisto",
    "myers",
    "noumbissi",
    "spoorenberg",
    "sprague",
    "whipple"
  ],
  "_datasets": [
    {
      "name": "samp",
      "title": "Sample Data for Heaping Correction Examples",
      "object": "samp",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "db030",
        "hsize",
        "age",
        "rb090",
        "db040",
        "pid",
        "weight",
        "pl031",
        "pb220a",
        "pb190",
        "pe040",
        "pl111",
        "pgrossIncomeCat",
        "pgrossIncome",
        "py010g",
        "py021g",
        "py050g",
        "py080g",
        "py090g",
        "py100g",
        "py110g",
        "py120g",
        "py130g",
        "py140g",
        ".weight"
      ],
      "rows": 13559,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "heaping-package",
      "title": "heaping: Correction of Heaping on Individual Level",
      "topics": [
        "heaping-package",
        "heaping"
      ]
    },
    {
      "page": "bachi",
      "title": "Bachi's Index of Age Heaping",
      "concept": [
        "heaping indices"
      ],
      "topics": [
        "bachi"
      ]
    },
    {
      "page": "coale_li",
      "title": "Coale-Li Age Heaping Index",
      "concept": [
        "heaping indices"
      ],
      "topics": [
        "coale_li"
      ]
    },
    {
      "page": "correctHeaps",
      "title": "Correct Age Heaping",
      "concept": [
        "heaping correction"
      ],
      "topics": [
        "correctHeaps",
        "correctHeaps2"
      ]
    },
    {
      "page": "correctHeapsMI",
      "title": "Multiple-Imputation Heaping Correction",
      "concept": [
        "heaping correction"
      ],
      "topics": [
        "correctHeapsMI",
        "print.heapingMI"
      ]
    },
    {
      "page": "correctSingleHeap",
      "title": "Correct a Single Age Heap",
      "concept": [
        "heaping correction"
      ],
      "topics": [
        "correctSingleHeap"
      ]
    },
    {
      "page": "heaping_indices",
      "title": "Calculate All Heaping Indices",
      "concept": [
        "heaping indices"
      ],
      "topics": [
        "heaping_indices"
      ]
    },
    {
      "page": "jdanov",
      "title": "Jdanov's Old-Age Heaping Index",
      "concept": [
        "heaping indices"
      ],
      "topics": [
        "jdanov"
      ]
    },
    {
      "page": "kannisto",
      "title": "Kannisto's Age Heaping Index",
      "concept": [
        "heaping indices"
      ],
      "topics": [
        "kannisto"
      ]
    },
    {
      "page": "myers",
      "title": "Myers' Blended Index of Age Heaping",
      "concept": [
        "heaping indices"
      ],
      "topics": [
        "myers"
      ]
    },
    {
      "page": "noumbissi",
      "title": "Noumbissi's Digit Heaping Index",
      "concept": [
        "heaping indices"
      ],
      "topics": [
        "noumbissi"
      ]
    },
    {
      "page": "samp",
      "title": "Sample Data for Heaping Correction Examples",
      "topics": [
        "samp"
      ]
    },
    {
      "page": "spoorenberg",
      "title": "Spoorenberg's Total Modified Whipple Index",
      "concept": [
        "heaping indices"
      ],
      "topics": [
        "spoorenberg"
      ]
    },
    {
      "page": "sprague",
      "title": "Sprague Index (Multipliers)",
      "concept": [
        "graduation methods"
      ],
      "topics": [
        "sprague"
      ]
    },
    {
      "page": "whipple",
      "title": "Whipple Index (Original and Modified)",
      "concept": [
        "heaping indices"
      ],
      "topics": [
        "whipple"
      ]
    }
  ],
  "_rundeps": [
    "cli",
    "cpp11",
    "EnvStats",
    "farver",
    "fitdistrplus",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "MASS",
    "Matrix",
    "nortest",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "survival",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "heaping-intro.Rmd",
      "filename": "heaping-intro.html",
      "title": "Introduction to the heaping Package",
      "author": "Matthias Templ",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "The Problem: What is Heaping?",
        "Detecting Heaping: Heaping Indices",
        "Whipple's Index",
        "Myers' Index",
        "Bachi's Index",
        "Noumbissi's Index",
        "Convenience Function: All Indices at Once",
        "Using Sampling Weights",
        "Correcting Heaping",
        "Basic Correction",
        "Correction Methods",
        "Verbose Output and Diagnostics",
        "10-Year Heaping",
        "Custom Heap Positions",
        "Single Heap Correction",
        "Model-Based Correction",
        "Multiple Imputation Framework",
        "Protecting Specific Observations",
        "Working with Aggregated Data: Sprague Multipliers",
        "Indices for Old Ages",
        "Summary",
        "References"
      ],
      "created": "2026-01-30 11:56:43",
      "modified": "2026-03-05 15:52:02",
      "commits": 2
    }
  ],
  "_score": 3.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "heaping",
  "_universes": [
    "matthias-da"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-10-11T09:58:36.000Z",
      "distro": "resolute",
      "commit": "6afaf903e25584d9ed53f8eb8778261cd900ec28",
      "fileid": "https://r2.ropensci.org/142dd174fd7970d4d482095894fbd5cf1f11b87c3458bb885d67bab8ed3477f1",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/38129946292"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-10-11T09:58:55.000Z",
      "distro": "resolute",
      "commit": "6afaf903e25584d9ed53f8eb8778261cd900ec28",
      "fileid": "https://r2.ropensci.org/534699e217077f6988daa98ebbb476ffa4bfaf56de155c3327287dfb590ace61",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/38129946292"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-10-11T10:16:45.000Z",
      "commit": "6afaf903e25584d9ed53f8eb8778261cd900ec28",
      "fileid": "https://r2.ropensci.org/98e76899b4860f0916872b2ec6e67273de9f9ea3b36c5e78caf486c421e2c744",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/38129946292"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-10-11T10:05:33.000Z",
      "commit": "6afaf903e25584d9ed53f8eb8778261cd900ec28",
      "fileid": "https://r2.ropensci.org/0931f9a1470b80afe2cc6c547dfe20bb05e908f95b91c815bc8238cb802a13e8",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/38129946292"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-10-11T09:58:23.000Z",
      "commit": "6afaf903e25584d9ed53f8eb8778261cd900ec28",
      "fileid": "https://r2.ropensci.org/6043a3bf554f6106e24e924b3774968457ddc9b2300ad01fe6cf53628c8b15f6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/38129946292"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-10-11T09:57:24.000Z",
      "commit": "6afaf903e25584d9ed53f8eb8778261cd900ec28",
      "fileid": "https://r2.ropensci.org/5810ec0d57d539aae86c6c280bfe317af7addf07b26052257adf175485b68276",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/38129946292"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-10-11T09:57:32.000Z",
      "commit": "6afaf903e25584d9ed53f8eb8778261cd900ec28",
      "fileid": "https://r2.ropensci.org/64365845d3bef78e4cb5109d7e05dd5e847d6b2efb605f8b8deb6c9e35068d80",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/38129946292"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-10-11T09:57:29.000Z",
      "commit": "6afaf903e25584d9ed53f8eb8778261cd900ec28",
      "fileid": "https://r2.ropensci.org/92f63c38b401b667135f273eef6d157ea94f9a75b1178519b746afa4bb00aa44",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/38129946292"
    }
  ]
}