{
  "_id": "6a1fe95cb401979e7343e020",
  "Package": "heaping",
  "Type": "Package",
  "Title": "Correction of Heaping on Individual Level",
  "Version": "0.1.1",
  "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, and optional\nmodel-based adjustment to preserve covariate relationships.",
  "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-03-05 15:52:02 UTC",
  "RemoteUrl": "https://github.com/matthias-da/heaping",
  "RemoteRef": "HEAD",
  "RemoteSha": "ddf8c979da3937e69e361cb1ad2b969e59a1258c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-03 08:39:43 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>",
  "MD5sum": "38dcef569b14d909db4cbd6a29618cd0",
  "_user": "matthias-da",
  "_type": "src",
  "_file": "heaping_0.1.1.tar.gz",
  "_fileid": "9854a4c6e1d9f49f6519de749875bb2c632981b1eb2510fcb917fcbcdf1cf1d2",
  "_filesize": 2478670,
  "_sha256": "9854a4c6e1d9f49f6519de749875bb2c632981b1eb2510fcb917fcbcdf1cf1d2",
  "_created": "2026-06-03T08:39:43.000Z",
  "_published": "2026-06-03T08:44:12.156Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79254876629,
      "time": 178,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7379755261"
    },
    {
      "job": 79254876686,
      "time": 176,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7379754801"
    },
    {
      "job": 79254876691,
      "time": 105,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7379756434"
    },
    {
      "job": 79254876703,
      "time": 100,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7379772285"
    },
    {
      "job": 79254350969,
      "time": 185,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7379694349"
    },
    {
      "job": 79254876608,
      "time": 139,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7379742212"
    },
    {
      "job": 79254876720,
      "time": 98,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7379728137"
    },
    {
      "job": 79254876712,
      "time": 127,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7379738410"
    },
    {
      "job": 79254876726,
      "time": 134,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7379740456"
    }
  ],
  "_buildurl": "https://github.com/r-universe/matthias-da/actions/runs/26873414370",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/matthias-da/heaping",
  "_commit": {
    "id": "ddf8c979da3937e69e361cb1ad2b969e59a1258c",
    "author": "Matthias Templ <matthias.templ@gmail.com>",
    "committer": "Matthias Templ <matthias.templ@gmail.com>",
    "message": "Fix par() save/restore in vignette for CRAN compliance\n\nCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>\n",
    "time": 1772725922
  },
  "_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"
  },
  "_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
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "matthias-da",
      "count": 8,
      "uuid": 5263685
    }
  ],
  "_userbio": {
    "uuid": 5263685,
    "type": "user",
    "name": "Matthias Templ",
    "description": "Matthias Templ is a Professor at the University of Applied Sciences Northwestern Switzerland. \r\nInterest: imputation, anonymization"
  },
  "_downloads": {
    "count": 106,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/heaping"
  },
  "_devurl": "https://github.com/matthias-da/heaping",
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/heaping.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/matthias-da/heaping",
  "_realowner": "matthias-da",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-02-16"
    }
  ],
  "_exports": [
    "bachi",
    "coale_li",
    "correctHeaps",
    "correctHeaps2",
    "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": "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.3010299956639813,
  "_indexed": true,
  "_nocasepkg": "heaping",
  "_universes": [
    "matthias-da"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-03T08:42:23.000Z",
      "distro": "noble",
      "commit": "ddf8c979da3937e69e361cb1ad2b969e59a1258c",
      "fileid": "0e13751bf5ede53999b31bbe581b0e818f260afc1edad33dfb003b89a145b1a9",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/26873414370"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-03T08:42:21.000Z",
      "distro": "noble",
      "commit": "ddf8c979da3937e69e361cb1ad2b969e59a1258c",
      "fileid": "7bbf61e58e732a94dea51489a8786dd1e4177e2741f135512dcb552452e54ae5",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/26873414370"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-03T08:42:39.000Z",
      "commit": "ddf8c979da3937e69e361cb1ad2b969e59a1258c",
      "fileid": "fee1e03f873361fc4a2b35b3188e50e3e57c19cbefd2e90e6f0fd3ae5b8b6740",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/26873414370"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-03T08:43:27.000Z",
      "commit": "ddf8c979da3937e69e361cb1ad2b969e59a1258c",
      "fileid": "fc495a40634d0bed4648d513dc7322d55b1c7b6f810561fd33feaf9a95e5615d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/26873414370"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-06-03T08:42:20.000Z",
      "commit": "ddf8c979da3937e69e361cb1ad2b969e59a1258c",
      "fileid": "cc30ccc5ea30c898f211af712a24b96d1e713a90f9b6c39027bd21016b361517",
      "status": "success",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/26873414370"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-03T08:40:58.000Z",
      "commit": "ddf8c979da3937e69e361cb1ad2b969e59a1258c",
      "fileid": "e3d1e3fc55b9b2249247eb729f2de36c28f4ef27f83b814ff6350cd3949645eb",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/26873414370"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-03T08:41:20.000Z",
      "commit": "ddf8c979da3937e69e361cb1ad2b969e59a1258c",
      "fileid": "a7d0a895c8f32c046b363aa7163f9dd02b7775cfb5f26808a2ea793cfd20e987",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/26873414370"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-03T08:41:31.000Z",
      "commit": "ddf8c979da3937e69e361cb1ad2b969e59a1258c",
      "fileid": "c29987ef92f8a072ec1307fde5f8d2fbdcdf880af1b3693d98d3accdcf1baf23",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/matthias-da/actions/runs/26873414370"
    }
  ]
}