heaping_indices: Calculate All Heaping Indices

View source: R/heaping_indices.R

heaping_indicesR Documentation

Calculate All Heaping Indices

Description

This function calculates all available heaping indices for a given age vector, providing a comprehensive assessment of data quality.

Usage

heaping_indices(x, weight = NULL)

Arguments

x

numeric vector of individual ages.

weight

optional numeric vector of sampling weights.

Details

Convenience function to calculate multiple heaping indices at once.

Value

A named list with all heaping indices:

whipple_standard

Standard Whipple index (100 = no heaping)

whipple_modified

Modified Whipple index (0 = no heaping)

myers

Myers' blended index (0 = no heaping)

bachi

Bachi's index (0 = no heaping)

spoorenberg

Total Modified Whipple index (0 = no heaping)

noumbissi_0

Noumbissi's index for digit 0 (1 = no heaping)

noumbissi_5

Noumbissi's index for digit 5 (1 = no heaping)

Author(s)

Matthias Templ

See Also

Other heaping indices: bachi(), coale_li(), jdanov(), kannisto(), myers(), noumbissi(), spoorenberg(), whipple()

Examples

set.seed(42)
# Uniform ages (no heaping)
age_uniform <- sample(20:70, 10000, replace = TRUE)
heaping_indices(age_uniform)

# Heaped ages
age_heaped <- sample(seq(20, 70, by = 5), 5000, replace = TRUE)
heaping_indices(age_heaped)


heaping documentation built on Feb. 10, 2026, 1:08 a.m.